Skip to content

Commit

Permalink
Fix polymer block positions not being decoded correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Jun 3, 2023
1 parent cd8d035 commit f358e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fabric_version=0.82.1+1.20

maven_group = eu.pb4

mod_version = 0.5.0-rc.1
mod_version = 0.5.0-rc.2

minecraft_version_supported = ">=1.20-"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ protected Iterator<BlockPos.Mutable> delegate() {
if (this.currentIterator == null || !this.currentIterator.hasNext()) {
var array = WorldChunkMixin.this.getSectionArray();
while (this.current < array.length) {
var s = array[this.current++];
var id = this.current++;
var s = array[id];
var si = (PolymerBlockPosStorage) s;
if (s != null && si.polymer$hasAny()) {
this.currentIterator = si.polymer$iterator(ChunkSectionPos.from(WorldChunkMixin.this.getPos(), WorldChunkMixin.this.sectionCoordToIndex(this.current)));
this.currentIterator = si.polymer$iterator(ChunkSectionPos.from(WorldChunkMixin.this.getPos(), WorldChunkMixin.this.sectionIndexToCoord(id)));
break;
}
}
Expand Down

0 comments on commit f358e6e

Please sign in to comment.