From 3a2019aba886ad48b8a31f6422dd8c29a30bc746 Mon Sep 17 00:00:00 2001 From: plague006 Date: Sat, 2 Feb 2019 18:45:04 -0500 Subject: [PATCH] Don't copy the event table --- map_gen/shared/entity_placement_restriction.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/map_gen/shared/entity_placement_restriction.lua b/map_gen/shared/entity_placement_restriction.lua index 1fe47e92..76ec8c8d 100644 --- a/map_gen/shared/entity_placement_restriction.lua +++ b/map_gen/shared/entity_placement_restriction.lua @@ -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()