Browse Source

Fix onSignChange()

Stabrinai 8 months ago
parent
commit
b236a088cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Plugin/src/main/java/de/Linus122/TimeIsMoney/ATM.java

+ 1 - 1
Plugin/src/main/java/de/Linus122/TimeIsMoney/ATM.java

@@ -387,7 +387,7 @@ public class ATM implements Listener, CommandExecutor {
 		final Block b = e.getBlock();
 		final Block b = e.getBlock();
 		
 		
 		if (b.getState() instanceof Sign) {
 		if (b.getState() instanceof Sign) {
-			Main.scheduler.runDelayed(SchedulerType.SYNC, task -> {
+			Main.scheduler.runDelayed(SchedulerType.SYNC, e.getBlock().getLocation(), task -> {
 				if (b.getState() instanceof Sign) {
 				if (b.getState() instanceof Sign) {
 					Sign sign = (Sign) e.getBlock().getState();
 					Sign sign = (Sign) e.getBlock().getState();
 					if (sign.getLine(0).equalsIgnoreCase("[ATM]") 
 					if (sign.getLine(0).equalsIgnoreCase("[ATM]")