mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Don't copy the event table
This commit is contained in:
parent
f173e06b55
commit
3a2019aba8
@ -121,8 +121,7 @@ local on_built_token =
|
||||
|
||||
event.ghost = ghost
|
||||
event.player = p
|
||||
raise_event(Public.events.on_pre_restricted_entity_destroyed, deep_copy(event)) -- use deepcopy so that any potential writes to `event` aren't passed backwards
|
||||
|
||||
raise_event(Public.events.on_pre_restricted_entity_destroyed, event)
|
||||
-- Need to revalidate the entity since we sent it via the event
|
||||
if entity.valid then
|
||||
entity.destroy()
|
||||
|
Loading…
Reference in New Issue
Block a user