Commits

pokechu22 authored and md_5 committed e20928f7da2
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.
No tags

nms-patches/WorldServer.patch

Modified

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut