Skip to content

Commit

Permalink
feat(JOML): migrate CraftInHandAuthoritySystem (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
pollend authored Jan 5, 2021
1 parent 604ae64 commit adfc3f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package org.terasology.workstationCrafting.system;

import org.joml.Vector3f;
import org.terasology.workstationCrafting.event.UserCraftInHandRequest;
import org.terasology.workstationCrafting.system.recipe.hand.CraftInHandRecipe;
import org.terasology.entitySystem.entity.EntityManager;
Expand Down Expand Up @@ -51,7 +52,7 @@ public void craftInHandRequestReceived(UserCraftInHandRequest event, EntityRef c
if (result != null) {
EntityRef resultEntity = result.craft(character, event.getCount());
if (resultEntity.exists()) {
resultEntity.send(new DropItemEvent(character.getComponent(LocationComponent.class).getWorldPosition()));
resultEntity.send(new DropItemEvent(character.getComponent(LocationComponent.class).getWorldPosition(new Vector3f())));
}
}
}
Expand Down

0 comments on commit adfc3f2

Please sign in to comment.