mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-07-13 01:20:19 +02:00
fix require for Popup.player
This commit is contained in:
@ -11,6 +11,7 @@ local Token = require 'utils.token'
|
|||||||
local Global = require 'utils.global'
|
local Global = require 'utils.global'
|
||||||
local CreateParticles = require 'features.create_particles'
|
local CreateParticles = require 'features.create_particles'
|
||||||
local RS = require 'map_gen.shared.redmew_surface'
|
local RS = require 'map_gen.shared.redmew_surface'
|
||||||
|
local Popup = require 'features.gui.popup'
|
||||||
local table = require 'utils.table'
|
local table = require 'utils.table'
|
||||||
local random = math.random
|
local random = math.random
|
||||||
local floor = math.floor
|
local floor = math.floor
|
||||||
@ -419,7 +420,7 @@ function DiggyCaveCollapse.register(cfg)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if (nil ~= support_beam_entities[event.entity.name]) then
|
if (nil ~= support_beam_entities[event.entity.name]) then
|
||||||
require 'features.gui.popup'.player(
|
Popup.player(
|
||||||
game.get_player(player_index),
|
game.get_player(player_index),
|
||||||
{'diggy.cave_collapse_warning'}
|
{'diggy.cave_collapse_warning'}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user