Prevent players from turning off the industrial switch when the tool cabinet is not authorized?
Industrial switchSuggestion
object OnSwitchToggle(IOEntity entity, BasePlayer player)
{
bool isBuildingBlocked = player.IsBuildingBlocked();
if (isBuildingBlocked)
{
return false;
}
return null;
}