diff --git a/core/src/mindustry/input/InputHandler.java b/core/src/mindustry/input/InputHandler.java index 73be92ad0d..90ac947c52 100644 --- a/core/src/mindustry/input/InputHandler.java +++ b/core/src/mindustry/input/InputHandler.java @@ -615,7 +615,9 @@ public abstract class InputHandler implements InputProcessor, GestureListener{ @Remote(targets = Loc.both, called = Loc.both, forward = true) public static void tileConfig(@Nullable Player player, Building build, @Nullable Object value){ + if(build == null && net.server()) throw new ValidateException(player, "building is null"); if(build == null) return; + if(net.server() && (!Units.canInteract(player, build) || !netServer.admins.allowAction(player, ActionType.configure, build.tile, action -> action.config = value))){