From fa9f748a6fa2c1efd20901b6677bc7b2762035e2 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 26 Mar 2025 23:28:43 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 0eb7213..49ba8ad 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -108,9 +108,9 @@ if settings.startup['PHI-CT'].value then end function inserter_utils.get_max_range(inserter) - local prototype = (inserter.object_name == 'LuaEntity' and ((inserter.type == 'entity-ghost' and inserter.ghost_prototype) or inserter.prototype)) or ((inserter.object_name == 'LuaEntityPrototype' and inserter) or nil) - local pickup_pos = math2d.position.ensure_xy(math2d.position.add(prototype.inserter_pickup_position, {0.5, 0.5})) - local drop_pos = math2d.position.ensure_xy(math2d.position.add(prototype.inserter_drop_position, {0.5, 0.5})) + -- local p = (inserter.object_name == 'LuaEntity' and ((inserter.type == 'entity-ghost' and inserter.ghost_prototype) or inserter.prototype)) or ((inserter.object_name == 'LuaEntityPrototype' and inserter) or nil) + local pickup_pos = math2d.position.ensure_xy(math2d.position.add(inserter.inserter_pickup_position, {0.5, 0.5})) + local drop_pos = math2d.position.ensure_xy(math2d.position.add(inserter.inserter_drop_position, {0.5, 0.5})) return math.max(math.abs(math.floor(pickup_pos.x)), math.abs(math.floor(pickup_pos.y)), math.abs(math.floor(drop_pos.x)), math.abs(math.floor(drop_pos.y))) end