mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 02:45:13 -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();
|
radius = buffer.readFloat();
|
||||||
if (radius > 100.0F) {
|
if (radius > 100.0F) {
|
||||||
// maybe somebody tries to crash me?
|
// maybe somebody tries to crash me?
|
||||||
|
// Sorry, Maximilian Rosenmüller
|
||||||
throw new IllegalArgumentException(String.format("Explosion to big %s > 100.0F", radius));
|
throw new IllegalArgumentException(String.format("Explosion to big %s > 100.0F", radius));
|
||||||
}
|
}
|
||||||
int recordCount = buffer.readInteger();
|
int recordCount = buffer.readInteger();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user