Commit Graph

689 Commits

Author SHA1 Message Date
Hugo Planque
a03667bdd0 Merge #26 Move some Goal from Server to Api
We move the Find Crystal and the Orbit Crystal from Purpur-Server to Purpur-API for the those who use the Mob Goal API and this can be useful to give this goal to mob
2020-05-07 09:53:52 -05:00
William Blake Galbreath
e7b1eb157b Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
cc477e6a Force Plugins that use delayed tasks for init back in their place
597263fd Don't skip full player connection tick when dead
e2c23475 Revert loaded entity list (#3304)
fa87db6b Move another NetworkManager util into the inner class (#3303)
841c7d18 Make loaded entity list logic more consistent (#3301)
36f34f01 Updated Upstream (Bukkit/CraftBukkit)
5ca5f131 Rebuild all patches using the new rebuild pattern
1ccff6fa Add villager reputation API
5c0bfffa Speed up rebuilding patches and reduce diff
f37381ea Optimize Network Manager to not need synchronization
8f9df2ed Anti Xray cleanup
878c66f1 No-Tick view distance implementation - Closes #3196
b87743c1 Stop copy-on-write operations for updating light data
97a9c972 Optimize isOutsideRange to use distance maps
b4e629a2 Use distance map to optimise entity tracker / Misc Utils
d80d1517 Optimize Entity Ticking to Loaded Chunks only
31d7686d Add item slot helper methods for various inventories (#3221)
75e1e3b3 Mob Goal API
c7bc393a Revert "Don't flush packet queue off main thread"
1abd2bd2 Don't flush packet queue off main thread
a4ed58a9 Clean up Direct Memory Region Files Fix for different Java versions
55e35019 Set cap on JDK per-thread native byte buffer cache
b5101f4f Cleanup Region Files Direct Memory on close
81e655d7 Optimize Voxel Shape Merging
ed9fc11f Sync position on teleportation
9c326fce Nanothing to see here
3e9fc24b Attempt to fix FastLogin maybe
2020-05-06 20:18:39 -05:00
William Blake Galbreath
d064334c71 Add option to disable ignored advancement warnings 2020-05-02 21:18:43 -05:00
William Blake Galbreath
b78a36de5e Rebuild patches 2020-05-02 21:03:13 -05:00
William Blake Galbreath
4d42781bdd Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
932e97f3 Rename to AsyncPlayerSendSuggestionsEvent to be consistent in naming
0dd19075 AsyncSendPlayerSuggestionsEvent Brigadier Event
a9e20e5f Fix being kicked in survival for block picking - Fixes #3277
4d20537e Expose game version (#3274)
85fb0015 Validate PickItem Packet and kick for invalid - Fixes #3256
5729bc71 Special case Keep Alive packets from Anti Xray
a76b7740 Improved oversized chunk data packet handling
a6f78170 Use Vanilla Bed Search for non players (Villagers)
68fb98b5 Fix 2 plugin specific issues with loot drop and pathfinders
6e41f7b7 Update Activation Range 2.0 with more villager controls
57dd3971 Updated Upstream (Bukkit/CraftBukkit)
2020-05-02 21:01:38 -05:00
William Blake Galbreath
be3ee18320 Player invulnerabilities 2020-05-02 21:00:49 -05:00
William Blake Galbreath
f94d5bfe59 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
a6a197b1 Bump API ASM version to follow server
5ab48ad9 Fix commodore (#3264)
87e7ee7e Improve Async Login to avoid firing in middle of Entity Ticking
2020-05-01 14:35:02 -05:00
William Blake Galbreath
2e50cb0eed Rebuild patches 2020-04-28 20:17:35 -05:00
William Blake Galbreath
a2db5eebbe Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
8ce3dd5f [CI-SKIP] Fix Mojang API Brigadier dep - THIS IS NOT A NEW BUILD
00d760a5 Fix build due to spigot changing the build timestamp process
842e040c Updated Upstream (Bukkit/CraftBukkit/Spigot)
c03260a2 Add getter and setter for villager's numberOfRestocksToday (#3231)
fe366fbe null check tracker for entity metadata update - Fixes #3070
fdf41b74 Implement Brigadier Mojang API
e0ea2e0e Entity Activation Range 2.0! Major improvements to restoring behavior
10396d28 Fix Tracking Range mismatch on Vehicle/Passenger checks
2020-04-28 20:14:57 -05:00
William Blake Galbreath
c0e748c0c1 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
68994c64 Add a config to turn off Optimized TickList #3145
d847d336 Improve blocking players from opening inventories while sleeping
ac4f6b50 Clean up Timings and Async Chunk Configs
fcf89e85 Improve mid tick chunk loading, Fix Oversleep, other improvements
ab36835c Improve random ticking behaviour - Fixes #3181
2020-04-26 16:29:21 -05:00
William Blake Galbreath
660afe73df Add enderman and creeper griefing controls 2020-04-26 16:28:48 -05:00
William Blake Galbreath
8ec7d99ec0 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
a6ac47e5 Fix numerous item duplication issues and teleport issues
b7402f11 Add phantom creative and insomniac controls (#3222)
75819fac Fix Potion#toItemStack swapping the extended and upgraded constructor values (#3216)
2020-04-25 15:48:09 -05:00
William Blake Galbreath
6daa61aea9 Villagers farming can bypass mob-griefing gamerule 2020-04-24 09:39:27 -05:00
William Blake Galbreath
6098e53926 Entities pick up loot bypass mob-griefing gamerule 2020-04-24 09:38:24 -05:00
William Blake Galbreath
d085a5b222 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
cb15cfa4 Improve Async Login so pending connections dont get exposed
f275e9cb Optimize Hoppers - Major Boost - Got2GoFast!
0106485c Improvements to watchdog changes
65934b1f Fix build for last commit. 5am commits are great
3f436029 Don't process watchdog until server has fully started and ticked.
938bd972 Don't fire BlockFade on worldgen threads - Fixes #3208
509a828e Fix loading spawn chunks when async chunks is off
8a91bfd2 Improvements to async login
bf698865 Revert "Re-track players that dismount from other players"
82b98418 Fix some issues with async login as well another source of sync loads
aa241d2b Allow multiple callbacks to schedule for Callback Executor
a2064a41 Add PlayerAttackEntityCooldownResetEvent This event is called when processing a player's attack on an entity right before their attack strength cd is reset, there are no existing events that fire within this period of time so it was impossible to capture the players attack strength via API prior to this commit.
f48d4299 Allow sleeping players to float
eeb2f67d Fix Bed respawn deviating too far from vanilla (#3195)
68a7b9fe Move player to spawn point if spawn in unloaded world
2020-04-24 08:22:02 -05:00
KennyTV
d02efdff6b Add PlayerItemCooldownEvent 2020-04-20 09:34:05 -05:00
William Blake Galbreath
fc7824b3a8 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
f29c7ebd Improve async login (#3189)
9fd36824 Fix Citizens Player NPC tracking issue - Fixes #3186
0e72de1c Fix Player Tracking issue during join process.
f26362af Load Spawn Chunks Asynchronously and Spiral Out
54f762e2 Load Chunks for Login Asynchronously
f2d1b6e5 Clean up duplicate PlayerInitialSpawnEvent
c2d022d7 Fix Longstanding Broken behavior of PlayerJoinEvent
d0a348b9 Broadcast join messages to console
1ef687a4 Don't crash if player is attempted to be removed from untracked chunk.
c11668ac Make sure the chunk conversion task is executed immediately
26fb7cc3 Fix Chunk Post Processing deadlock risk
2020-04-19 17:06:16 -05:00
William Blake Galbreath
df15c09fb1 More anvil controls 2020-04-19 13:05:51 -05:00
William Blake Galbreath
e4a8964a8b Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
ffecc4e2 Revert "Optimize entity list iteration requiring entities be in"
0a4286cc Prevent Fire from loading chunks
07915ea1 Add Player Client Options API (#2883)
bc48a317 Optimize entity list iteration requiring entities be in  loaded chunks
88092fef Optimize ChunkProviderServer's chunk level checking helper methods
01e8ce8d Forced Watchdog Crash support and Improve Async Shutdown
fdb8fe78 Be less strict with vanilla teleport command limits
2020-04-17 15:32:51 -05:00
ChrystiGalbreath
6c4aab0053 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
0f06d380 Restrict vanilla teleport command to within worldborder
24d93aaf Fix Optional null issue - Fixes #3155
eb71c5fa Fix incorect timing of mspt
1ca80434 Optimise entity hard collision checking
b67a4237 Don't run entity collision code if not needed
bd9aa547 Optimise ArraySetSorted#removeIf
78871d07 Make JavaClassLoader thread-safe (Fixes #3137) (#3144)
2020-04-16 20:45:31 -05:00
William Blake Galbreath
ea1b4e3583 Fix the retaliation 2020-04-13 20:23:39 -05:00
William Blake Galbreath
1231800fca Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
81706e62 Make the shutdown thread try to shutdown on main
89182450 Prevent opening inventories when frozen
e6d395cc Port 04-Util.patch from Tuinity (#3136)
59453f66 Fix incorrectly loading chunks on a cancelled interact event
bdcc31ca Let invalid positioned entities clean up previous chunk by the chunkCheck
92d2907d Multiple memory and performance optimizations (removing streams)
748e6447 Improve the don't save entities patch per leafs feedback
2020-04-13 19:23:38 -05:00
William Blake Galbreath
2243be4513 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
c096fe19 Port 20w15a Villager AI optimizations
832687de Restore preventing saving bad entities patch to full effect
df8eedee Restore Optimize Pathfinding patch
97b1cc36 Allow shutting down server during a watchdog hang gracefully
06044e24 Async command map building
2020-04-12 17:33:46 -05:00
William Blake Galbreath
b6d5b8200e Make purpur.lang reloadable with 2020-04-12 16:39:52 -05:00
William Blake Galbreath
3630f35339 Do not send blank chat components to players 2020-04-12 13:44:16 -05:00
William Blake Galbreath
35b84461ed Remove our /mspt command in favor of Paper's 2020-04-12 13:34:40 -05:00
William Blake Galbreath
b2a0de5386 Make 'cannot mount mob' string configurable 2020-04-12 13:32:59 -05:00
William Blake Galbreath
e8ec02d1d4 Chickens can retaliate 2020-04-12 13:31:35 -05:00
William Blake Galbreath
95538dd1d7 Documentation moved to GitHub Wiki 2020-04-12 13:10:23 -05:00
William Blake Galbreath
b4ab7a4f19 Uh... Oops.. Timing stack corruptions fix 2020-04-12 12:23:08 -05:00
William Blake Galbreath
94953a334c Remove tick times api (was moved upstream to paper) 2020-04-12 03:51:46 -05:00
William Blake Galbreath
193c511fce Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
a4f066cc Fix method profiler inbalance introduced in a2a9ffe (#3132)
c65dcad3 Don't delay chunk unloads during entity ticking
bc17ce69 Delay unsafe actions until after entity ticking is done - Fixes #3114
5553e6b3 Disable Sync Events firing Async errors during shutdown
e12c51d9 Use better variable for isStopping() API
586ee2bb Remove patch for MC-111480, fixed in 1.14
09a94215 Remove streams from Mob AI System
bb5c294e Fix Disabling Asynchronous Chunks
089d8356 Implement Chunk Priority / Urgency System for World Gen
fce69af7 Use dedicated thread for main thread blocking chunk loads
588b62e4 Add tick times API and /mspt command (#3102)
11de41c7 Add API MinecraftServer#isStopping (#3129)
942ff3c2 My patches are under MIT (#3130)
2020-04-12 03:45:54 -05:00
William Blake Galbreath
bf845ca9e4 Fix ridable slimes 2020-04-11 00:11:45 -05:00
William Blake Galbreath
58c9b01e32 Actually calculate command map and perms async 2020-04-10 23:16:47 -05:00
William Blake Galbreath
94b1df84a7 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
0ed6da7a Fix issues with 167 causing crashes due to missing chunks - Fixes #3122
2020-04-10 13:47:07 -05:00
William Blake Galbreath
ef94c821f3 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
23ee0a8a Fix issue with 0,0 chunks causing crash
bc8fafb2 Updated Upstream (CraftBukkit/Spigot)
ebbca5ce Drowned is a RangedEntity (fixes API for Drowned to support Ranged)
83b03eee Don't move existing players to world spawn
3b3e38fd Fix issue with loading chunk during ticking chunks issue
78431dca Update test server startup script
2020-04-10 01:43:21 -05:00
William Blake Galbreath
16e780dcdb Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
ab74bb45 Speed up processing of chunk loads and generation
f5dd491f Increase Light Queue Size
9ab69348 Don't load chunks when attempting to unload a chunk
38c62622 Improve Optimize Memory use logic to make iterator safer and fix bad plugins like P2
2020-04-09 19:37:51 -05:00
William Blake Galbreath
a29baddb7d Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
d33ba160 Fix incorrect keyword use on visibleChunksClone
2f343015 Updated Upstream (Bukkit/CraftBukkit)
a65831bd Optimize PlayerChunkMap memory use for visibleChunks
2020-04-08 23:13:56 -05:00
William Blake Galbreath
891673a2a0 Async recalc perms and command map 2020-04-08 23:03:02 -05:00
William Blake Galbreath
caf7dcb545 Fix ItemStack#damage... again.. 2020-04-06 06:10:19 -05:00
William Blake Galbreath
dd056edcc5 Add more ItemStack convenience stuffs 2020-04-06 05:58:37 -05:00
William Blake Galbreath
c76b42c0eb Fix logic error in ItemStack#damage 2020-04-06 05:13:19 -05:00
William Blake Galbreath
8e1e816556 Add pillager leader chance options 2020-04-06 01:09:14 -05:00
William Blake Galbreath
0c2deb10ed Attempt at fix for disabled pillager outpost limiter 2020-04-05 23:55:02 -05:00
William Blake Galbreath
8f5eb7d006 Updated Upstream ()
Upstream has released updates that appears to apply and compile correctly
2020-04-04 20:32:49 -05:00
William Blake Galbreath
1ad8af2d22 Always able to execute tasks on the main server queue 2020-04-04 20:29:47 -05:00
William Blake Galbreath
1c4687461d Rebuild patches 2020-04-04 20:28:11 -05:00
William Blake Galbreath
7a9fb595ad Debug stick should not update neighbors 2020-04-04 17:20:02 -05:00
William Blake Galbreath
f14e058fd4 Skip events if there's no listeners 2020-04-04 17:19:53 -05:00
William Blake Galbreath
04dc309d5a Add more timings timers 2020-04-04 17:19:14 -05:00