mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-30 09:30:39 +07:00
Fixed dedicated server crash
This commit is contained in:
parent
423f5f16bb
commit
8760e99c43
@ -69,8 +69,10 @@ public class ItemDrop extends SolidEntity implements SaveTrait, SyncTrait, DrawT
|
|||||||
Effects.effect(UnitFx.pickup, drop);
|
Effects.effect(UnitFx.pickup, drop);
|
||||||
}
|
}
|
||||||
itemGroup.removeByID(itemid);
|
itemGroup.removeByID(itemid);
|
||||||
|
if(Net.client()){
|
||||||
netClient.addRemovedEntity(itemid);
|
netClient.addRemovedEntity(itemid);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**Internal use only!*/
|
/**Internal use only!*/
|
||||||
public ItemDrop(){
|
public ItemDrop(){
|
||||||
|
Loading…
Reference in New Issue
Block a user