Merge pull request 'Fixed Detonator CCE' (#97) from detonator2.0 into master
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
f0169f0b59
@ -79,7 +79,7 @@ public class Detonator implements Listener {
|
|||||||
for (Detoloader.DetonatorActivation activation: getLocations()) {
|
for (Detoloader.DetonatorActivation activation: getLocations()) {
|
||||||
|
|
||||||
Boolean powered;
|
Boolean powered;
|
||||||
if(activation.activation == -1) switch (Core.getVersion()) {
|
if(activation.activation == 0) switch (Core.getVersion()) {
|
||||||
case 15:
|
case 15:
|
||||||
powered = AutoLoader_15.getLever(activation.location.getBlock());
|
powered = AutoLoader_15.getLever(activation.location.getBlock());
|
||||||
AutoLoader_15.setRedstone(activation.location, !powered);
|
AutoLoader_15.setRedstone(activation.location, !powered);
|
||||||
@ -120,7 +120,7 @@ public class Detonator implements Listener {
|
|||||||
detoloader = AutoLoader_12.onPlayerInteractLoader(event);
|
detoloader = AutoLoader_12.onPlayerInteractLoader(event);
|
||||||
|
|
||||||
}
|
}
|
||||||
if(detoloader == null) return;
|
if(detoloader == null || detoloader.activation == -1) return;
|
||||||
|
|
||||||
if(event.getPlayer().isSneaking()) {
|
if(event.getPlayer().isSneaking()) {
|
||||||
if(locs.stream().filter(detonatorActivation -> detonatorActivation.location.equals(event.getClickedBlock().getLocation())).collect(Collectors.toList()).size() == 1) {
|
if(locs.stream().filter(detonatorActivation -> detonatorActivation.location.equals(event.getClickedBlock().getLocation())).collect(Collectors.toList()).size() == 1) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren