summaryrefslogtreecommitdiffstats
path: root/nms-patches/TileEntity.patch
diff options
context:
space:
mode:
authorAikar <aikar@aikar.co>2016-06-21 19:08:09 -0400
committermd_5 <git@md-5.net>2016-06-23 10:34:08 +1000
commit1953f52da1ece0feb56dea20592c1b86616b31a5 (patch)
tree87bd42ddfd0c8880a54bf8766b547dd0c0d2aa5f /nms-patches/TileEntity.patch
parent9af379fc4741a6fb487aaf4b5c7ffdbcbb12ca4f (diff)
downloadcraftbukkit-1953f52da1ece0feb56dea20592c1b86616b31a5.tar
craftbukkit-1953f52da1ece0feb56dea20592c1b86616b31a5.tar.gz
craftbukkit-1953f52da1ece0feb56dea20592c1b86616b31a5.tar.lz
craftbukkit-1953f52da1ece0feb56dea20592c1b86616b31a5.tar.xz
craftbukkit-1953f52da1ece0feb56dea20592c1b86616b31a5.zip
SPIGOT-2439: Consistently fire Chunk(Load|Unload)Event
Clean up implementation and firing of both of these events by routing both unload and load behaviors to consistent method calls. This fixes issues where a few places would not call Load or Unload events when it should have. Additionally, reduces diff by moving the neighbor marking code into these consistent points. Additional benefits of the change include improving the neighbor marking methods to use getChunkIfLoaded instead of getLoadedChunkAt in some places, as the latter will cause chunks to be marked active and not unload. Finally, this also updates CraftWorld.loadChunk to use the new methods, as the previous logic did not properly handle the new unload queue.
Diffstat (limited to 'nms-patches/TileEntity.patch')
0 files changed, 0 insertions, 0 deletions