Skip to content

Commit

Permalink
feat(JOML): minor tweak from simplefarming (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
pollend authored Nov 5, 2020
1 parent c9abee2 commit 80d2ea6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.terasology.entitySystem.systems.RegisterMode;
import org.terasology.entitySystem.systems.RegisterSystem;
import org.terasology.logic.location.LocationComponent;
import org.terasology.math.JomlUtil;
import org.terasology.math.geom.Vector3i;
import org.terasology.metalrenegades.interaction.component.CityCropComponent;
import org.terasology.metalrenegades.interaction.component.FarmComponent;
Expand Down Expand Up @@ -99,7 +100,7 @@ public void onFarmPlantGeneration(FarmPlantGenerationEvent event, EntityRef farm
EntityRef plantEntity = entityManager.create(event.plantName);
Vector3i plantLocation = new Vector3i(farmLocation.getWorldPosition().add(x, PLANT_OFFSET, y));

plantEntity.send(new OnSeedPlanted(plantLocation));
plantEntity.send(new OnSeedPlanted(JomlUtil.from(plantLocation)));
}
}
}
Expand Down

0 comments on commit 80d2ea6

Please sign in to comment.