mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Fix Button trigger behavior
This commit is contained in:
parent
89846991c1
commit
a76472a6a0
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user