summaryrefslogtreecommitdiffstats
path: root/nms-patches/LoginListener.patch
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2016-10-15 23:20:12 -0700
committermd_5 <git@md-5.net>2016-10-16 19:42:23 +1100
commite20928f7da265577c771b63ca7ce49c35ef19b2b (patch)
tree08b822f898d511f1ccdea427b5657ee23131f49e /nms-patches/LoginListener.patch
parentb5fb9a1cd769a0ee1283c47b5b8b54bbf559c9a9 (diff)
downloadcraftbukkit-e20928f7da265577c771b63ca7ce49c35ef19b2b.tar
craftbukkit-e20928f7da265577c771b63ca7ce49c35ef19b2b.tar.gz
craftbukkit-e20928f7da265577c771b63ca7ce49c35ef19b2b.tar.lz
craftbukkit-e20928f7da265577c771b63ca7ce49c35ef19b2b.tar.xz
craftbukkit-e20928f7da265577c771b63ca7ce49c35ef19b2b.zip
SPIGOT-2726: Fix duplicate UUID check not always running
World.addEntity(Entity entity) calls addEntity(entity, SpawnReason.DEFAULT), which contains the code that was originally in addEntity (and some event code). However, WorldServer previously only had addEntity(Entity entity), so if addEntity(Entity entity, SpawnReason spawnreason) was called directly, the UUID check that's found in it (the call to 'i') is skipped. This happens, among other places, in ChunkRegionLoader.spawnEntity (which /summon uses). I fixed this by making WorldServer override the SpawnReason version, rather than the regular version. This is safe to do because the World version calls the SpawnReason version - it's not necessary to do the same thing in WorldServer.
Diffstat (limited to 'nms-patches/LoginListener.patch')
0 files changed, 0 insertions, 0 deletions