diff --git a/shared/src/main/java/net/blay09/mods/waystones/block/WaystoneBlockBase.java b/shared/src/main/java/net/blay09/mods/waystones/block/WaystoneBlockBase.java index 63d0f1a3..b9d576ee 100644 --- a/shared/src/main/java/net/blay09/mods/waystones/block/WaystoneBlockBase.java +++ b/shared/src/main/java/net/blay09/mods/waystones/block/WaystoneBlockBase.java @@ -149,15 +149,6 @@ protected void createBlockStateDefinition(StateDefinition.Builder { - - if (!player.getAbilities().instabuild) { - if (waystone.wasGenerated() && WaystonesConfig.getActive().restrictions.generatedWaystonesUnbreakable) { - return false; - } - - boolean isGlobal = waystone.getVisibility() == WaystoneVisibility.GLOBAL; - boolean mayBreakGlobalWaystones = !WaystonesConfig.getActive().restrictions.globalWaystoneSetupRequiresCreativeMode; - return !isGlobal || mayBreakGlobalWaystones; - } - - - return true; - }).orElse(true); - - } - - public static boolean mayPlaceWaystone(@Nullable Player player) { - return !WaystonesConfig.getActive().restrictions.restrictToCreative || (player != null && player.getAbilities().instabuild); - } - public static WaystoneEditPermissions mayEditWaystone(Player player, Level world, IWaystone waystone) { - if (WaystonesConfig.getActive().restrictions.restrictToCreative && !player.getAbilities().instabuild) { - return WaystoneEditPermissions.NOT_CREATIVE; - } - if (WaystonesConfig.getActive().restrictions.restrictRenameToOwner && !waystone.isOwner(player)) { return WaystoneEditPermissions.NOT_THE_OWNER; }