This commit is contained in:
2023-09-23 04:56:21 +09:00
parent 72153df210
commit 76947319dd
6 changed files with 9 additions and 6 deletions

3
.gitignore vendored
View File

@@ -47,6 +47,9 @@ jspm_packages
# Thumbnails # Thumbnails
._* ._*
# IDE
.vscode/settings.json
# Files that might appear in the root of a volume # Files that might appear in the root of a volume
.DocumentRevisions-V100 .DocumentRevisions-V100
.fseventsd .fseventsd

View File

@@ -210,4 +210,4 @@ disabled=disabled
toggle-msg=Fast decon has been __1__ toggle-msg=Fast decon has been __1__
[vlayer] [vlayer]
main-tooltip=Enable vlayer GUI main-tooltip=Enable Vlayer GUI

View File

@@ -210,4 +210,4 @@ disabled=停用
toggle-msg=樹木快速拆除已 __1__ toggle-msg=樹木快速拆除已 __1__
[vlayer] [vlayer]
main-tooltip=Enable vlayer GUI main-tooltip=Enable Vlayer GUI

View File

@@ -210,4 +210,4 @@ disabled=停用
toggle-msg=樹木快速拆除已 __1__ toggle-msg=樹木快速拆除已 __1__
[vlayer] [vlayer]
main-tooltip=Enable vlayer GUI main-tooltip=Enable Vlayer GUI

View File

@@ -83,7 +83,7 @@ local function spawn_belts(surface, position)
local set_position = apply_offset(position, belt_set) local set_position = apply_offset(position, belt_set)
for _, belt in pairs(belt_details) do for _, belt in pairs(belt_details) do
local pos = apply_offset(set_position, belt) local pos = apply_offset(set_position, belt)
local belt_entity = surface.create_entity{name=belt_type, position=pos, force='spawn', direction=belt[3]} local belt_entity = surface.create_entity{name=belt_type, position=pos, force='neutral', direction=belt[3]}
if config.afk_belts.protected then if config.afk_belts.protected then
protect_entity(belt_entity) protect_entity(belt_entity)

View File

@@ -93,6 +93,7 @@ local function vlayer_convert_chest_circuit(player)
if (pos) then if (pos) then
local circuit_o = player.surface.create_entity{name='constant-combinator', position=pos, force='neutral'} local circuit_o = player.surface.create_entity{name='constant-combinator', position=pos, force='neutral'}
game.print(player.name .. ' built a vlayer circuit on ' .. pos_to_gps_string(pos))
circuit_o.destructible = false circuit_o.destructible = false
circuit_o.minable = false circuit_o.minable = false
circuit_o.operable = true circuit_o.operable = true
@@ -112,7 +113,6 @@ local function vlayer_convert_chest_circuit(player)
circuit_oc.set_signal(11, {signal={type='item', name='accumulator'}, count=0}) circuit_oc.set_signal(11, {signal={type='item', name='accumulator'}, count=0})
table.insert(vlayer.power.circuit, circuit_o) table.insert(vlayer.power.circuit, circuit_o)
game.print(player.name .. ' built a vlayer circuit on ' .. pos_to_gps_string(pos))
end end
end end