SteamWar/BauSystem
Archiviert
13
0

RedstoneTester #202

Manuell gemergt
YoyoNow hat 29 Commits von RedstoneTester nach master 2021-04-01 18:21:40 +02:00 zusammengeführt
Nur Änderungen aus Commit 3e184dfefb werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -66,7 +66,8 @@ public class RedstoneListener implements Listener {
private void activate(Location location) {
if (loc1 != null && loc1.equals(location)) {
if (activated != null && !activated.equals(location)) {
player.sendMessage(BauSystem.PREFIX + "Aktivierungsdifferenz§8: §e" + (currentTick - tick) + " §8(§7" + locationToString(activated) + " §8->§7 " + locationToString(location) + "§8)");
player.sendMessage(BauSystem.PREFIX + "Aktivierungsdifferenz§8: §e" + (currentTick - tick));
player.sendMessage(BauSystem.PREFIX + "Reihenfolge§8: (§7" + locationToString(activated) + " §8->§7 " + locationToString(location) + "§8)");
activated = null;
return;
}
@ -74,7 +75,8 @@ public class RedstoneListener implements Listener {
tick = currentTick;
} else if (loc2 != null && loc2.equals(location)) {
if (activated != null && !activated.equals(location)) {
player.sendMessage(BauSystem.PREFIX + "Aktivierungsdifferenz§8: §e" + (currentTick - tick) + " §8(§7" + locationToString(activated) + " §8->§7 " + locationToString(location) + "§8)");
player.sendMessage(BauSystem.PREFIX + "Aktivierungsdifferenz§8: §e" + (currentTick - tick));
player.sendMessage(BauSystem.PREFIX + "Reihenfolge§8: (§7" + locationToString(activated) + " §8->§7 " + locationToString(location) + "§8)");
activated = null;
return;
}