Merge pull request #3255 from wagyourtail/replaymod-newfix

replaymod replay crash fix 1.17+
This commit is contained in:
Leijurv 2022-02-08 10:45:39 -08:00 committed by GitHub
commit 0bfe98d306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ public class BlockStateInterface {
private final ClientChunkCache provider;
private final WorldData worldData;
protected final BlockGetter world;
protected final Level world;
public final BlockPos.MutableBlockPos isPassableBlockPos;
public final BlockGetter access;
@ -97,9 +97,9 @@ public class BlockStateInterface {
}
public BlockState get0(int x, int y, int z) { // Mickey resigned
y -= worldData.dimension.minY();
y -= world.dimensionType().minY();
// Invalid vertical position
if (y < 0 || y >= worldData.dimension.height()) {
if (y < 0 || y >= world.dimensionType().height()) {
return AIR;
}