Skip to content

Commit

Permalink
corrected getBlock for mapProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
pollend committed Apr 20, 2020
1 parent 5ea60e5 commit c3d3242
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.joml.Vector3ic;
import org.terasology.entitySystem.entity.EntityRef;
import org.terasology.math.ChunkMath;
import org.terasology.math.JomlUtil;
import org.terasology.math.Region3i;
import org.terasology.math.geom.Vector3i;
import org.terasology.world.WorldChangeListener;
Expand Down Expand Up @@ -92,7 +93,7 @@ public Block setBlock(Vector3i pos, Block type) {

@Override
public Block setBlock(Vector3ic pos, Block type) {
return null;
return blocks.put(JomlUtil.from(pos), type);
}

@Override
Expand Down

0 comments on commit c3d3242

Please sign in to comment.