From fd2483c3af190456ad0512974c1a2bda300be8b6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 31 Aug 2024 23:46:38 +0000 Subject: [PATCH] chore: pre-commit changes [skip ci] --- .../com/sekwah/advancedportals/core/CoreListeners.java | 3 ++- .../java/com/sekwah/advancedportals/spigot/Listeners.java | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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); } }