diff --git a/src/main/lombok/nl/SBDeveloper/V10Lift/API/V10LiftAPI.java b/src/main/lombok/nl/SBDeveloper/V10Lift/API/V10LiftAPI.java index 6318063..5f78fca 100644 --- a/src/main/lombok/nl/SBDeveloper/V10Lift/API/V10LiftAPI.java +++ b/src/main/lombok/nl/SBDeveloper/V10Lift/API/V10LiftAPI.java @@ -161,7 +161,7 @@ public class V10LiftAPI { DataManager.removeLift(liftName); DataManager.addLift(newName, lift); for (LiftSign ls : lift.getSigns()) { - Block block = Objects.requireNonNull(Bukkit.getWorld(ls.getWorld()), "World is null at setDefective").getBlockAt(ls.getX(), ls.getY(), ls.getZ()); + Block block = Objects.requireNonNull(Bukkit.getWorld(ls.getWorld()), "World is null at renameLift").getBlockAt(ls.getX(), ls.getY(), ls.getZ()); BlockState bs = block.getState(); if (!(bs instanceof Sign)) continue; Sign si = (Sign) bs; diff --git a/src/main/lombok/nl/SBDeveloper/V10Lift/Listeners/PlayerInteractListener.java b/src/main/lombok/nl/SBDeveloper/V10Lift/Listeners/PlayerInteractListener.java index 7426b3e..644aa9d 100644 --- a/src/main/lombok/nl/SBDeveloper/V10Lift/Listeners/PlayerInteractListener.java +++ b/src/main/lombok/nl/SBDeveloper/V10Lift/Listeners/PlayerInteractListener.java @@ -51,7 +51,7 @@ public class PlayerInteractListener implements Listener { for (LiftBlock lb : lift.getOfflineInputs()) { if (world.equals(lb.getWorld()) && x == lb.getX() && y == lb.getY() && z == lb.getZ()) { lb.setActive(!lb.isActive()); - V10LiftPlugin.getAPI().setDefective(entry.getKey(), lb.isActive()); + V10LiftPlugin.getAPI().setOffline(entry.getKey(), lb.isActive()); return; } }