Minor fixes
This commit is contained in:
10
world.js
10
world.js
@@ -98,7 +98,7 @@ export function blockLookup(world, x, y, z) {
|
||||
if (chunk === undefined) {
|
||||
return {
|
||||
type: BlockType.STONE,
|
||||
x, y, z,
|
||||
centerPosition: [x, y, z],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -108,9 +108,11 @@ export function blockLookup(world, x, y, z) {
|
||||
|
||||
return {
|
||||
type: chunk.data[256 * (16*i + j) + k],
|
||||
x: j,
|
||||
y: k,
|
||||
z: i,
|
||||
centerPosition: [
|
||||
Math.floor(midx),
|
||||
k,
|
||||
Math.floor(midz),
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user