SteamWar/BauSystem
Archiviert
13
0

Fixed CCE When Block is Changed #101

Manuell gemergt
Lixfel hat 3 Commits von detonator2.0 nach master 2020-09-25 16:25:02 +02:00 zusammengeführt

Datei anzeigen

@ -81,7 +81,12 @@ public class Detonator implements Listener {
Boolean powered;
if(activation.activation == -1) switch (Core.getVersion()) {
case 15:
powered = AutoLoader_15.getLever(activation.location.getBlock());
try {
powered = AutoLoader_15.getLever(activation.location.getBlock());
}catch (ClassCastException e) {
locs.remove(activation);
Review

Kleiner Denkfehler von meiner seite.

Kleiner Denkfehler von meiner seite.
return;
}
AutoLoader_15.setRedstone(activation.location, !powered);
break;
default:
@ -111,7 +116,7 @@ public class Detonator implements Listener {
event.setCancelled(true);
switch (event.getAction()) {
case LEFT_CLICK_BLOCK:
Detoloader detoloader = null;
Detoloader detoloader;
switch(Core.getVersion()){
case 15:
detoloader = AutoLoader_15.onPlayerInteractLoader(event);