Skip to content

Commit

Permalink
fix: hopefully fix crash with waterlogging processor & unloaded chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Aug 29, 2023
1 parent 134d9e4 commit af09967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ minecraft_version=1.19.2
forge_version=1.19.2-43.2.4

# Mod Properties
mod_version=1.1.0
mod_version=1.1.1
maven_group=dev.ftb.mods
archives_base_name=ftb-team-dimensions
mod_id=ftbteamdimensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public StructureTemplate.StructureBlockInfo process(LevelReader levelReader, Blo
// Is the block meant to be a fluid? No then lets make sure the world doesn't already have a fluid there
if (after.state.getFluidState().isEmpty()) {
// Is the block water? No, is the current block in the world water? Yes, Cool, remove it before placement
if (after.state.getBlock() != Blocks.WATER && levelReader.getBlockState(after.pos).getFluidState().is(Fluids.WATER)) {
if (after.state.getBlock() != Blocks.WATER && levelReader.hasChunkAt(after.pos) && levelReader.getBlockState(after.pos).getFluidState().is(Fluids.WATER)) {
worldGenRegion.setBlock(after.pos, after.state, Block.UPDATE_ALL);
}
}
Expand Down

0 comments on commit af09967

Please sign in to comment.