From b8ae083ccdf24dbc831ecac9108ecbf11e9acc6b Mon Sep 17 00:00:00 2001 From: salva Date: Sun, 25 Jun 2017 03:24:36 +0200 Subject: [PATCH] Update DestroySystem.py Apparently several players told me that / destroyall returned some duplicate objects, I wrote some lines to prevent this .... I have tested it in version 1.7.5. , But impatio that in 1.7.6 the same thing will happen. Maybe you can check if it's true? ,regards --- FougeritePlugins/DestroySystem/DestroySystem.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FougeritePlugins/DestroySystem/DestroySystem.py b/FougeritePlugins/DestroySystem/DestroySystem.py index ae83c0f..a7687f9 100644 --- a/FougeritePlugins/DestroySystem/DestroySystem.py +++ b/FougeritePlugins/DestroySystem/DestroySystem.py @@ -326,6 +326,8 @@ def On_EntityHurt(self, HurtEvent): for ent in structs: if self.giveback == 1: namef = ent.Name + if namef == "Wood Barricade" or namef == "WoodSpikeWall" or namef == "LargeWoodSpikeWall" or namef == "Wood_Shelter" or namef == "WoodBox" or namef == "WoodBoxLarge" or namef == "Furnace" or namef == "RepairBench" or namef == "Workbench": + continue if namef in EntityList.keys(): HurtEvent.Attacker.Inventory.AddItem(EntityList[namef]) ent.Destroy()