mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 19:18:12 +01:00
Condition simplification
This commit is contained in:
parent
3a988ddba1
commit
962a5117e9
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user