Condition simplification

This commit is contained in:
themode 2020-12-14 06:08:26 +01:00
parent 3a988ddba1
commit 962a5117e9

View File

@ -402,10 +402,7 @@ public class InstanceContainer extends Instance {
PacketUtils.sendGroupedPacket(chunk.getViewers(), effectPacket,
(viewer) -> {
// Prevent the block breaker to play the particles and sound two times
if (customBlock == null && viewer.equals(player)) {
return false;
}
return true;
return (customBlock != null && customBlock.enableCustomBreakDelay()) || !viewer.equals(player);
});
}