forked from SteamWar/SteamWar
Fix build
This commit is contained in:
@@ -56,7 +56,7 @@ public class AntiNocom implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void registerUseItem() {
|
private void registerUseItem() {
|
||||||
TinyProtocol.instance.addTypedFilter(ServerboundUseItemOnPacket.class, (player, packet) -> {
|
TinyProtocol.instance.addFilter(ServerboundUseItemOnPacket.class, (player, packet) -> {
|
||||||
BlockPos pos = packet.getHitResult().getBlockPos();
|
BlockPos pos = packet.getHitResult().getBlockPos();
|
||||||
return isValid(player, "UseItem", pos.getX(), pos.getZ()) ? packet : null;
|
return isValid(player, "UseItem", pos.getX(), pos.getZ()) ? packet : null;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user