From af77640a524d9ba858c9583c3cd4fba7c0e7c8a4 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 26 Mar 2025 22:30:40 +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 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