NoLag: Updates method for WithersForce

This commit is contained in:
noil 2021-03-15 19:52:00 -04:00
parent 6d99ee1a83
commit 9eae8d00ac
1 changed files with 9 additions and 0 deletions

View File

@ -74,6 +74,15 @@ public final class NoLagModule extends Module {
}
}
if (this.withersForce.getValue()) {
if (event.getPacket() instanceof SPacketSpawnMob) {
final SPacketSpawnMob packet = (SPacketSpawnMob) event.getPacket();
if (packet.getEntityType() == 64) {
event.setCanceled(true);
}
}
}
if (this.sounds.getValue()) {
if (event.getPacket() instanceof SPacketSoundEffect) {
final SPacketSoundEffect packet = (SPacketSoundEffect) event.getPacket();