From a76472a6a04c06be9e538d088f838378c7fc4f04 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Tue, 14 Apr 2020 21:12:52 +0200 Subject: [PATCH] Fix Button trigger behavior --- .../main/java/de/erethon/dungeonsxl/api/sign/Button.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/de/erethon/dungeonsxl/api/sign/Button.java b/api/src/main/java/de/erethon/dungeonsxl/api/sign/Button.java index 87937d64..d3c67825 100644 --- a/api/src/main/java/de/erethon/dungeonsxl/api/sign/Button.java +++ b/api/src/main/java/de/erethon/dungeonsxl/api/sign/Button.java @@ -70,7 +70,11 @@ public abstract class Button extends AbstractDSign { */ @Override public void trigger(Player player) { - push(player); + if (player != null) { + push(player); + } else { + push(); + } } }