diff --git a/core/src/main/java/com/sekwah/advancedportals/core/CoreListeners.java b/core/src/main/java/com/sekwah/advancedportals/core/CoreListeners.java index a2e10fe9..c42616a2 100644 --- a/core/src/main/java/com/sekwah/advancedportals/core/CoreListeners.java +++ b/core/src/main/java/com/sekwah/advancedportals/core/CoreListeners.java @@ -196,6 +196,7 @@ public boolean entityPortalEvent(EntityContainer entity) { } public boolean physicsEvent(BlockLocation blockLocation, String string) { - return !configRepository.getDisablePhysicsEvents() || !portalServices.inPortalRegionProtected(blockLocation); + return !configRepository.getDisablePhysicsEvents() + || !portalServices.inPortalRegionProtected(blockLocation); } } diff --git a/spigot/src/main/java/com/sekwah/advancedportals/spigot/Listeners.java b/spigot/src/main/java/com/sekwah/advancedportals/spigot/Listeners.java index 4f21184a..e8439742 100644 --- a/spigot/src/main/java/com/sekwah/advancedportals/spigot/Listeners.java +++ b/spigot/src/main/java/com/sekwah/advancedportals/spigot/Listeners.java @@ -51,9 +51,10 @@ public void onBlockPlace(BlockPlaceEvent event) { @EventHandler(priority = EventPriority.HIGH) public void onPhysicsEvent(BlockPhysicsEvent event) { - if (!coreListeners.physicsEvent(ContainerHelpers.toBlockLocation( - event.getBlock().getLocation()), - event.getBlock().getType().toString())) { + if (!coreListeners.physicsEvent( + ContainerHelpers.toBlockLocation( + event.getBlock().getLocation()), + event.getBlock().getType().toString())) { event.setCancelled(true); } }