Test for correct coordinates when fishing
Fun fact: this was able to actually deadlock the server depending on where you were standing :)
This commit is contained in:
@@ -922,6 +922,7 @@ void cNBTChunkSerializer::Entity(cEntity * a_Entity)
|
||||
case cEntity::etItemFrame: AddItemFrameEntity (reinterpret_cast<cItemFrame *> (a_Entity)); break;
|
||||
case cEntity::etPainting: AddPaintingEntity (reinterpret_cast<cPainting *> (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");
|
||||
|
||||
Reference in New Issue
Block a user