mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-17 20:58:13 +02:00
minor fix
This commit is contained in:
parent
72815d08d4
commit
5e97ce5761
@ -2,6 +2,7 @@
|
||||
|
||||
local Antigrief = require 'antigrief'
|
||||
local SessionData = require 'utils.datastore.session_data'
|
||||
local Utils = require 'utils.core'
|
||||
|
||||
local spaghett_entity_blacklist = {
|
||||
['logistic-chest-requester'] = true,
|
||||
@ -15,6 +16,7 @@ local function get_actor(event, action)
|
||||
return
|
||||
end
|
||||
print(player.name .. ' ' .. action)
|
||||
Utils.action_warning('{Antigrief}', player.name .. ' has ' .. action .. ' the antigrief function.')
|
||||
end
|
||||
|
||||
local function spaghett_deny_building(event)
|
||||
@ -149,10 +151,10 @@ local antigrief_functions = {
|
||||
local AG = Antigrief.get()
|
||||
if event.element.switch_state == 'left' then
|
||||
AG.enabled = true
|
||||
get_actor(event, 'enabled antigrief')
|
||||
get_actor(event, 'enabled')
|
||||
else
|
||||
AG.enabled = false
|
||||
get_actor(event, 'disabled antigrief')
|
||||
get_actor(event, 'disabled')
|
||||
end
|
||||
trust_connected_players()
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user