mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 20:16:38 +09:00
Covnerted Event and Global
This commit is contained in:
@@ -9,7 +9,7 @@ local Color = require('FactorioStdLib.Color')
|
||||
|
||||
local DamagePopup = {}
|
||||
|
||||
script.on_event(defines.events.on_entity_damaged, function(event)
|
||||
Event.add(defines.events.on_entity_damaged, function(event)
|
||||
local entity = event.entity
|
||||
local cause = event.cause
|
||||
local damage = event.original_damage_amount
|
||||
|
||||
Reference in New Issue
Block a user