fix: Fix index out of bounds errors and LOD pillars

The `BiomeWrapper#equals` and `BlockStateWrapper#equals` methods didn't use the right `LevelWrapper` for serializing the object to compare to, this is now fixed.
This commit is contained in:
Steveplays28
2023-08-16 13:25:23 +02:00
parent d535f6aa57
commit 02498aa189
2 changed files with 2 additions and 2 deletions
@@ -115,7 +115,7 @@ public class BiomeWrapper implements IBiomeWrapper
BiomeWrapper that = (BiomeWrapper) obj;
// the serialized value is used so we can test the contents instead of the references
return Objects.equals(this.serialize(this.getLevelWrapper()), that.serialize(this.getLevelWrapper()));
return Objects.equals(this.serialize(this.getLevelWrapper()), that.serialize(that.getLevelWrapper()));
}
@Override
@@ -261,7 +261,7 @@ public class BlockStateWrapper implements IBlockStateWrapper
BlockStateWrapper that = (BlockStateWrapper) obj;
// the serialized value is used so we can test the contents instead of the references
return Objects.equals(this.serialize(this.getLevelWrapper()), that.serialize(this.getLevelWrapper()));
return Objects.equals(this.serialize(this.getLevelWrapper()), that.serialize(that.getLevelWrapper()));
}
@Override