mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
Refactor legacy addons into Clusterio format (#413)
* Refactor custom start * Refactor afk kick * Fix use of assert get player * Refactor chat popup * Refactor chat auto reply * Refactor help bubbles * Refactor damage popups * Refactor death markers * Refactor deconstruction log * Remove FAGC logging * Refactor discord alerts * Refactor insert pickup * Refactor inventory clear * Refactor extra logging * Refactor nuke protection * Refactor pollution grading * Refactor protection jail * Refactor report jail * Refactor mine depletion * Refactor degrading tiles * Refactor station auto name * Refactor spawn area * Refactor fast deconstruction * Bug Fixes
This commit is contained in:
@@ -484,7 +484,7 @@ local function on_entity_settings_pasted(event)
|
||||
planner.set_mapper(1, "to", mapper)
|
||||
|
||||
-- Apply the planner
|
||||
local player = assert(game.get_player(event.player_index))
|
||||
local player = Gui.get_player(event)
|
||||
player.surface.upgrade_area{
|
||||
area = destination.bounding_box,
|
||||
item = planner,
|
||||
|
||||
Reference in New Issue
Block a user