mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
some fix
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -210,4 +210,4 @@ disabled=停用
|
|||||||
toggle-msg=樹木快速拆除已 __1__
|
toggle-msg=樹木快速拆除已 __1__
|
||||||
|
|
||||||
[vlayer]
|
[vlayer]
|
||||||
main-tooltip=Enable vlayer GUI
|
main-tooltip=Enable Vlayer GUI
|
||||||
|
|||||||
@@ -210,4 +210,4 @@ disabled=停用
|
|||||||
toggle-msg=樹木快速拆除已 __1__
|
toggle-msg=樹木快速拆除已 __1__
|
||||||
|
|
||||||
[vlayer]
|
[vlayer]
|
||||||
main-tooltip=Enable vlayer GUI
|
main-tooltip=Enable Vlayer GUI
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user