Skip to content

Commit

Permalink
feat(JOML): JOMLUtil for intermediar OnBlockItemPlaced (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
pollend authored Dec 31, 2020
1 parent bc33f69 commit 55937ce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.terasology.entitySystem.systems.UpdateSubscriberSystem;
import org.terasology.logic.config.ModuleConfigManager;
import org.terasology.logic.health.BeforeDestroyEvent;
import org.terasology.math.JomlUtil;
import org.terasology.math.Side;
import org.terasology.math.SideBitFlag;
import org.terasology.math.geom.Vector3i;
Expand Down Expand Up @@ -477,7 +478,7 @@ private byte getConnections(Vector3i location, byte definedSides) {
@ReceiveEvent()
public void onBlockPlaced(OnBlockItemPlaced event, EntityRef entityRef) {
EntityRef ref = event.getPlacedBlock();
final Vector3i location = event.getPosition();
final Vector3i location = JomlUtil.from(event.getPosition());

if(ref.hasComponent(SignalConductorComponent.class)){
logger.debug("SignalConductor placed: " + ref.getParentPrefab());
Expand Down

0 comments on commit 55937ce

Please sign in to comment.