mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 10:25:06 -04:00
add sorry maximilian for adding an max explosion check
This commit is contained in:
parent
fb09597303
commit
8a658da299
@ -36,6 +36,7 @@ public class PacketExplosion implements ClientboundPacket {
|
||||
radius = buffer.readFloat();
|
||||
if (radius > 100.0F) {
|
||||
// maybe somebody tries to crash me?
|
||||
// Sorry, Maximilian Rosenmüller
|
||||
throw new IllegalArgumentException(String.format("Explosion to big %s > 100.0F", radius));
|
||||
}
|
||||
int recordCount = buffer.readInteger();
|
||||
|
Loading…
x
Reference in New Issue
Block a user