Skip to content

Commit

Permalink
Fix waterlogged barrier blocks causing ALL air to become water (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotStirred authored Aug 4, 2024
1 parent d53e532 commit b98fa55
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,8 @@ private static void addBlocks(Texture texture, String... names) {
}

static {
addBlocks((name, tag) -> Air.INSTANCE, "air", "cave_air", "void_air", "structure_void", "barrier");
addBlocks((name, tag) -> Air.INSTANCE, "air", "cave_air", "void_air", "structure_void");
addBlock("barrier", (name, tag) -> tag.get("Properties").get("waterlogged").stringValue("").equals("true") ? Water.INSTANCE : Air.INSTANCE);
addBlocks(Texture.stone, "infested_stone", "stone");

// 1.19
Expand Down

0 comments on commit b98fa55

Please sign in to comment.