Fixed #2246
This commit is contained in:
@@ -139,6 +139,9 @@ public class Administration{
|
||||
|
||||
/** @return whether this action is allowed by the action filters. */
|
||||
public boolean allowAction(Player player, ActionType type, Tile tile, Cons<PlayerAction> setter){
|
||||
//some actions are done by the server (null player) and thus are always alloed
|
||||
if(player == null) return true;
|
||||
|
||||
PlayerAction act = Pools.obtain(PlayerAction.class, PlayerAction::new);
|
||||
setter.get(act.set(player, type, tile));
|
||||
for(ActionFilter filter : actionFilters){
|
||||
|
||||
Reference in New Issue
Block a user