change: allow knocked players to interact with blocks

This commit is contained in:
Octol1ttle 2024-03-05 23:37:43 +05:00
parent d5109548c8
commit 6017cb54a2
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF

View file

@ -132,12 +132,6 @@ public class KnockdownsEvents {
} }
return CompoundEventResult.pass(); return CompoundEventResult.pass();
}); });
InteractionEvent.RIGHT_CLICK_BLOCK.register((player, hand, pos, direction) -> {
if (KnockdownsUtils.isKnockedOrReviving(player)) {
return EventResult.interruptFalse();
}
return EventResult.pass();
});
} }
private static void registerOnEntityUse() { private static void registerOnEntityUse() {