Fixed dedicated server crash

This commit is contained in:
Anuken 2018-07-04 13:18:50 -04:00
parent 423f5f16bb
commit 8760e99c43

View File

@ -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!*/