mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-06 00:23:49 +02:00
Towny fixes
This commit is contained in:
parent
53a611f5dd
commit
44cd85e9ed
@ -92,6 +92,11 @@ end
|
||||
|
||||
local function init_score_board(player)
|
||||
local ffatable = Table.get_table()
|
||||
local saved_frame = ffatable.score_gui_frame[player.index]
|
||||
if saved_frame and saved_frame.valid then
|
||||
return
|
||||
end
|
||||
|
||||
local flow = mod_gui.get_frame_flow(player)
|
||||
local frame = flow.add {type = 'frame', style = mod_gui.frame_style, caption = 'Town survival', direction = 'vertical'}
|
||||
frame.style.vertically_stretchable = false
|
||||
|
@ -269,7 +269,7 @@ function Public.near_another_town(force_name, position, surface, radius)
|
||||
if entity_force_name ~= nil then
|
||||
if entity_force_name ~= force_name then
|
||||
if blacklist_entity_types[e.type] ~= true then
|
||||
log('XDB prevent_entity, e.type:' .. e.type)
|
||||
-- log('XDB prevent_entity, e.type:' .. e.type)
|
||||
fail = true
|
||||
break
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user