From d05fdbdee99a2e77fc8662ba7288d36052ecfad7 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Thu, 10 Dec 2015 20:41:51 +0100 Subject: Test for correct coordinates when fishing Fun fact: this was able to actually deadlock the server depending on where you were standing :) --- src/WorldStorage/NBTChunkSerializer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/WorldStorage') diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index 855fcea09..b0451e427 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -922,6 +922,7 @@ void cNBTChunkSerializer::Entity(cEntity * a_Entity) case cEntity::etItemFrame: AddItemFrameEntity (reinterpret_cast (a_Entity)); break; case cEntity::etPainting: AddPaintingEntity (reinterpret_cast (a_Entity)); break; case cEntity::etPlayer: return; // Players aren't saved into the world + case cEntity::etFloater: return; // Floaters aren't saved either default: { ASSERT(!"Unhandled entity type is being saved"); -- cgit v1.2.3