mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 11:37:05 +01:00
Use activate() if player for activate(Player) is null; resolves #885
This commit is contained in:
parent
ddaf0ddd65
commit
0dd3dac8e3
@ -41,7 +41,11 @@ public abstract class Rocker extends Deactivatable {
|
||||
@Override
|
||||
public void trigger(Player player) {
|
||||
if (!isActive()) {
|
||||
if (player != null) {
|
||||
activate(player);
|
||||
} else {
|
||||
activate();
|
||||
}
|
||||
} else {
|
||||
deactivate();
|
||||
}
|
||||
|
@ -162,7 +162,11 @@ public abstract class Windup extends Deactivatable {
|
||||
@Override
|
||||
public void trigger(Player player) {
|
||||
if (!isActive()) {
|
||||
if (player != null) {
|
||||
activate(player);
|
||||
} else {
|
||||
activate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user