diff --git a/src/main/java/com/derongan/minecraft/deeperworld/synchronization/SectionSyncListener.kt b/src/main/java/com/derongan/minecraft/deeperworld/synchronization/SectionSyncListener.kt index 2fa6384..fc68057 100644 --- a/src/main/java/com/derongan/minecraft/deeperworld/synchronization/SectionSyncListener.kt +++ b/src/main/java/com/derongan/minecraft/deeperworld/synchronization/SectionSyncListener.kt @@ -61,7 +61,8 @@ object SectionSyncListener : Listener { /** Disables pistons if they are in the overlap of two sections */ @EventHandler fun onPistonEvent(event: BlockPistonExtendEvent) { - if (event.block.location.correspondingSection != null) + //TODO handle pistons properly instead of just cancelling the event + if (event.blocks.any { it.location.correspondingSection != null }) event.isCancelled = true }