mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Custom Wired small fix
This commit is contained in:
parent
cd335ed316
commit
9386ad4663
@ -230,7 +230,7 @@ public class WiredHandler {
|
||||
|
||||
private static boolean triggerEffect(InteractionWiredEffect effect, RoomUnit roomUnit, Room room, Object[] stuff, long millis) {
|
||||
boolean executed = false;
|
||||
if (effect != null && effect.canExecute(millis)) {
|
||||
if (effect != null && (effect.canExecute(millis) || (roomUnit != null && effect.requiresTriggeringUser() && Emulator.getConfig().getBoolean("wired.custom.enabled", false) && effect.userCanExecute(roomUnit.getId(), millis)))) {
|
||||
executed = true;
|
||||
if (!effect.requiresTriggeringUser() || (roomUnit != null && effect.requiresTriggeringUser())) {
|
||||
Emulator.getThreading().run(() -> {
|
||||
|
Loading…
Reference in New Issue
Block a user