Fix Button trigger behavior

This commit is contained in:
Daniel Saukel 2020-04-14 21:12:52 +02:00
parent 89846991c1
commit a76472a6a0

View File

@ -70,7 +70,11 @@ public abstract class Button extends AbstractDSign {
*/ */
@Override @Override
public void trigger(Player player) { public void trigger(Player player) {
push(player); if (player != null) {
push(player);
} else {
push();
}
} }
} }