Changes
Dieser Commit ist enthalten in:
Ursprung
94cb735bd4
Commit
9150a3a4c7
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -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));
|
|
||||||
|
|
||||||
if (detoloader == null) {
|
if (detoloader == null) {
|
||||||
return;
|
return;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren