diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 03db84f..6988d8a 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -2,9 +2,6 @@ local items = require 'config' local math2d = require('math2d') if settings.startup['PHI-CT'].value then - local gui = {} - local inserter_utils = {} - local function trash_creation(event) local entity = event.created_entity or event.entity @@ -57,6 +54,9 @@ if settings.startup['PHI-CT'].value then script.on_event(defines.events.on_player_cheat_mode_enabled, hidden_recipe_enable) script.on_event(defines.events.on_player_cheat_mode_disabled, hidden_recipe_enable) + local gui = {} + local inserter_utils = {} + function math2d.position.equal(p1, p2) p1, p2 = math2d.position.ensure_xy(p1), math2d.position.ensure_xy(p2) return p1.x == p2.x and p1.y == p2.y