Fixing Loader String Double Activation
Dieser Commit ist enthalten in:
Ursprung
b6b92c4be9
Commit
7e9fb81faa
@ -169,25 +169,21 @@ public class AutoLoader extends IAutoLoader implements Listener {
|
||||
return;
|
||||
|
||||
Detoloader detoloader = VersionedCallable.call(
|
||||
new VersionedCallable<>(() ->
|
||||
AutoLoader_12.onPlayerInteractLoader(event), 12),
|
||||
new VersionedCallable<>(() ->
|
||||
AutoLoader_15.onPlayerInteractLoader(event), 15));
|
||||
new VersionedCallable<>(() -> AutoLoader_12.onPlayerInteractLoader(event), 12),
|
||||
new VersionedCallable<>(() -> AutoLoader_15.onPlayerInteractLoader(event), 15));
|
||||
|
||||
if(detoloader == null || detoloader.getActivation() < 0)
|
||||
return;
|
||||
if (detoloader == null || detoloader.getActivation() < 0) return;
|
||||
|
||||
if(lastLocation != null && lastLocation.distance(event.getClickedBlock().getLocation()) <= 1) {
|
||||
return;
|
||||
}
|
||||
if (lastLocation != null && lastLocation.distance(event.getClickedBlock().getLocation()) <= 1) return;
|
||||
|
||||
if(detoloader.useActive)
|
||||
if (detoloader.useActive) {
|
||||
new IAutoLoader.RedstoneActivation(this, event.getClickedBlock().getLocation()
|
||||
, detoloader.getActivation() == 0 ? getLastActivation() : detoloader.getActivation()
|
||||
, detoloader.isActive());
|
||||
else
|
||||
} else {
|
||||
new IAutoLoader.TemporaryActivation(this, event.getClickedBlock().getLocation()
|
||||
, detoloader.getActivation());
|
||||
}
|
||||
print(detoloader.addBack ? "§e" + detoloader.getBlock() + " betätigt" :
|
||||
detoloader.getBlock(), detoloader.addBack);
|
||||
lastLocation = event.getClickedBlock().getLocation();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren