Fix item appearing at (0,0,0) for host
@@ -206,7 +206,7 @@ public void update(float delta) {
// ensure that there are no lingering items that are marked as still held. This situation happens with client side predicted items
for (EntityRef entityRef : entityManager.getEntitiesWith(ItemIsHeldComponent.class)) {
if (!entityRef.equals(currentHeldItem) && !entityRef.equals(handEntity)) {
- entityRef.removeComponent(ItemIsHeldComponent.class);
+ entityRef.destroy();
}
}
