mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +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.ghost = ghost
|
||||||
event.player = p
|
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
|
-- Need to revalidate the entity since we sent it via the event
|
||||||
if entity.valid then
|
if entity.valid then
|
||||||
entity.destroy()
|
entity.destroy()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user