From 2c6778582840742e61e796f23fdd97bb0e34900a Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 27 Mar 2025 00:06:09 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 9475c7a..b08a8bc 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -108,9 +108,8 @@ if settings.startup['PHI-CT'].value then end function inserter_utils.get_max_range(inserter) - local p = inserter.ghost_prototype or inserter.prototype - local pickup_pos = math2d.position.ensure_xy(math2d.position.add(p.inserter_pickup_position, {0.5, 0.5})) - local drop_pos = math2d.position.ensure_xy(math2d.position.add(p.inserter_drop_position, {0.5, 0.5})) + local pickup_pos = math2d.position.ensure_xy(math2d.position.add(inserter.prototype.inserter_pickup_position, {0.5, 0.5})) + local drop_pos = math2d.position.ensure_xy(math2d.position.add(inserter.prototype.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