From def7d53da2cfc20fb6561c7cda86e69b3fab040c Mon Sep 17 00:00:00 2001 From: grilledham Date: Sun, 8 Sep 2019 13:18:50 +0100 Subject: [PATCH] fix require for Popup.player --- map_gen/maps/diggy/feature/diggy_cave_collapse.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/map_gen/maps/diggy/feature/diggy_cave_collapse.lua b/map_gen/maps/diggy/feature/diggy_cave_collapse.lua index 1054e1706..04a46390a 100644 --- a/map_gen/maps/diggy/feature/diggy_cave_collapse.lua +++ b/map_gen/maps/diggy/feature/diggy_cave_collapse.lua @@ -11,6 +11,7 @@ local Token = require 'utils.token' local Global = require 'utils.global' local CreateParticles = require 'features.create_particles' local RS = require 'map_gen.shared.redmew_surface' +local Popup = require 'features.gui.popup' local table = require 'utils.table' local random = math.random local floor = math.floor @@ -419,7 +420,7 @@ function DiggyCaveCollapse.register(cfg) end if (nil ~= support_beam_entities[event.entity.name]) then - require 'features.gui.popup'.player( + Popup.player( game.get_player(player_index), {'diggy.cave_collapse_warning'} )