Skip to content

Commit

Permalink
chore: pre-commit changes [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and sekwah41 committed Nov 18, 2024
1 parent bba1418 commit fd2483c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit fd2483c

Please sign in to comment.