mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -238,7 +238,6 @@ if settings.startup['PHI-CT'].value then
|
||||
local new_drop_dir = math2d.direction.from_vector(new_positions.drop)
|
||||
local delta = (new_drop_dir - math2d.direction.from_vector(old_positions.drop)) % 8
|
||||
new_positions.drop_offset = (not new_positions.drop and old_positions.drop_offset) or (((delta % 2 == 0) and {x = ((delta == 0 or delta == 6) and old_positions.drop_offset.y) or -old_positions.drop_offset.y, y = ((delta == 0 or delta == 2) and old_positions.drop_offset.x) or -old_positions.drop_offset.x}) or math2d.direction.vectors[(new_drop_dir + (new_drop_dir % 2) * 4 % 8) + 1])
|
||||
new_positions.direction = ((delta == 0 or delta == 1) and defines.direction.north) or ((delta == 2 or delta == 3) and defines.direction.east) or ((delta == 4 or delta == 5) and defines.direction.south) or defines.direction.west
|
||||
inserter_utils.set_arm_positions(inserter, new_positions)
|
||||
|
||||
elseif event.button == defines.mouse_button_type.right or (event.button == defines.mouse_button_type.left and (event.control or event.shift)) then
|
||||
|
||||
Reference in New Issue
Block a user