Skip to content

Commit

Permalink
1.7.1 fixed crash about sea grass
Browse files Browse the repository at this point in the history
  • Loading branch information
baguchi committed Nov 25, 2023
1 parent 48ff582 commit 0ce723c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ halplibe_version=2.7.0
prismatic_version=2.1.1
terrain_api_version=1.3.1
# Mod
mod_version=1.7.0
mod_version=1.7.1
mod_group=baguchan
mod_name=better_with_aquatic
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public BlockWaterPlantFlow(String name, int openIds, Material water) {

private void setFluidStill(World world, int x, int y, int z) {
int meta = world.getBlockMetadata(x, y, z);
world.setBlockAndMetadata(x, y, z, this.id - 1, meta);
world.setBlockAndMetadata(x, y, z, ModBlocks.sea_grass.id, meta);
world.markBlocksDirty(x, y, z, x, y, z);
world.markBlockNeedsUpdate(x, y, z);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public void onNeighborBlockChange(World world, int x, int y, int z, int blockId)
private void func_30004_j(World world, int i, int j, int k) {
int l = world.getBlockMetadata(i, j, k);
world.editingBlocks = true;
world.setBlockAndMetadata(i, j, k, this.id + 1, l);
world.setBlockAndMetadata(i, j, k, ModBlocks.sea_grass_flow.id, l);
world.markBlocksDirty(i, j, k, i, j, k);
world.scheduleBlockUpdate(i, j, k, this.id + 1, this.tickRate());
world.scheduleBlockUpdate(i, j, k, ModBlocks.sea_grass_flow.id, this.tickRate());
world.editingBlocks = false;
}

Expand Down

0 comments on commit 0ce723c

Please sign in to comment.