From 8760e99c4319bb7b16d18433313cae7adc83ebf4 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 4 Jul 2018 13:18:50 -0400 Subject: [PATCH] Fixed dedicated server crash --- core/src/io/anuke/mindustry/entities/effect/ItemDrop.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/entities/effect/ItemDrop.java b/core/src/io/anuke/mindustry/entities/effect/ItemDrop.java index eb96808569..8e974897ed 100644 --- a/core/src/io/anuke/mindustry/entities/effect/ItemDrop.java +++ b/core/src/io/anuke/mindustry/entities/effect/ItemDrop.java @@ -69,7 +69,9 @@ public class ItemDrop extends SolidEntity implements SaveTrait, SyncTrait, DrawT Effects.effect(UnitFx.pickup, drop); } itemGroup.removeByID(itemid); - netClient.addRemovedEntity(itemid); + if(Net.client()){ + netClient.addRemovedEntity(itemid); + } } /**Internal use only!*/