From 0761b9105ebc2e725b319567a495127790a06be2 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Mon, 14 Sep 2020 14:06:06 +0200 Subject: [PATCH] Fixed Detonator CCE --- BauSystem_Main/src/de/steamwar/bausystem/world/Detonator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/Detonator.java b/BauSystem_Main/src/de/steamwar/bausystem/world/Detonator.java index 8c54abe..63643ce 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/Detonator.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/Detonator.java @@ -79,7 +79,7 @@ public class Detonator implements Listener { for (Detoloader.DetonatorActivation activation: getLocations()) { Boolean powered; - if(activation.activation == -1) switch (Core.getVersion()) { + if(activation.activation == 0) switch (Core.getVersion()) { case 15: powered = AutoLoader_15.getLever(activation.location.getBlock()); AutoLoader_15.setRedstone(activation.location, !powered); @@ -120,7 +120,7 @@ public class Detonator implements Listener { detoloader = AutoLoader_12.onPlayerInteractLoader(event); } - if(detoloader == null) return; + if(detoloader == null || detoloader.activation == -1) return; if(event.getPlayer().isSneaking()) { if(locs.stream().filter(detonatorActivation -> detonatorActivation.location.equals(event.getClickedBlock().getLocation())).collect(Collectors.toList()).size() == 1) { -- 2.39.5