mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Create PacketError exception and use it with ACTIVEOBJECT_REMOVE_ADD handler which can be unreliable
This commit is contained in:
@@ -45,7 +45,7 @@ void NetworkPacket::checkReadOffset(u32 from_offset)
|
||||
std::stringstream ss;
|
||||
ss << "Reading outside packet (offset: " <<
|
||||
from_offset << ", packet size: " << getSize() << ")";
|
||||
throw SerializationError(ss.str());
|
||||
throw PacketError(ss.str());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user