Skip to content

Commit

Permalink
Oopsies
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley Watton committed Oct 23, 2020
1 parent b7bfee2 commit 7e70bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Anvil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class Anvil {
public getChunk(x: number, z: number): null | ChunkNBT {
const [rX, rZ] = Region.getChunkRegion(x, z)

const region = this.regions.get(Anvil.getRegionId(x, z))
const region = this.regions.get(Anvil.getRegionId(rX, rZ))

if(!region) throw new Error(`Tried getting chunk from an unloaded region: Chunk ${x}:${z}, Region ${rX}:${rZ}`)

Expand Down

0 comments on commit 7e70bb3

Please sign in to comment.