Fixing Detonator #158
@ -92,12 +92,10 @@ public class Detonator implements Listener {
|
|||||||
} else {
|
} else {
|
||||||
VersionedRunnable.call(new VersionedRunnable(() -> {
|
VersionedRunnable.call(new VersionedRunnable(() -> {
|
||||||
AutoLoader_12.setRedstone(activation.location, true);
|
AutoLoader_12.setRedstone(activation.location, true);
|
||||||
Bukkit.getScheduler().runTaskLater(BauSystem.getPlugin(), () ->
|
Bukkit.getScheduler().runTaskLater(BauSystem.getPlugin(), () -> AutoLoader_12.setRedstone(activation.location, false), activation.activation);
|
||||||
AutoLoader_12.setRedstone(activation.location, false), activation.activation);
|
|
||||||
}, 12), new VersionedRunnable(() -> {
|
}, 12), new VersionedRunnable(() -> {
|
||||||
|
|||||||
AutoLoader_15.setRedstone(activation.location, true);
|
AutoLoader_15.setRedstone(activation.location, true);
|
||||||
Bukkit.getScheduler().runTaskLater(BauSystem.getPlugin(), () ->
|
Bukkit.getScheduler().runTaskLater(BauSystem.getPlugin(), () -> AutoLoader_15.setRedstone(activation.location, false), activation.activation);
|
||||||
AutoLoader_15.setRedstone(activation.location, false), activation.activation);
|
|
||||||
}, 15));
|
}, 15));
|
||||||
}
|
}
|
||||||
YoyoNow
hat
Lambda bitte in eine Zeile Lambda bitte in eine Zeile
|
|||||||
}
|
}
|
||||||
@ -115,10 +113,8 @@ public class Detonator implements Listener {
|
|||||||
switch (event.getAction()) {
|
switch (event.getAction()) {
|
||||||
case LEFT_CLICK_BLOCK:
|
case LEFT_CLICK_BLOCK:
|
||||||
Detoloader detoloader = VersionedCallable.call(
|
Detoloader detoloader = VersionedCallable.call(
|
||||||
new VersionedCallable<>(() ->
|
new VersionedCallable<>(() -> AutoLoader_12.onPlayerInteractLoader(event), 12),
|
||||||
AutoLoader_12.onPlayerInteractLoader(event), 12),
|
new VersionedCallable<>(() -> AutoLoader_15.onPlayerInteractLoader(event), 15));
|
||||||
new VersionedCallable<>(() ->
|
|
||||||
AutoLoader_15.onPlayerInteractLoader(event), 15));
|
|
||||||
|
|
||||||
YoyoNow
hat
Auch hier Lambdas in die gleiche Zeile Auch hier Lambdas in die gleiche Zeile
|
|||||||
if (detoloader == null) {
|
if (detoloader == null) {
|
||||||
return;
|
return;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Lambda bitte in eine Zeile