Skip to content

Commit

Permalink
temp fix for fluid visibility
Browse files Browse the repository at this point in the history
fix #967
  • Loading branch information
TropheusJ committed Jul 3, 2023
1 parent 7faf28f commit ad64c63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions FABRIC_CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Change logging starts below:
- fix some blocks in copycats causing crashes (#988, #984, #971)
- fix pipe ponder crashing (#987, #970)
- added safety on train carriage loading (#985)
- fix visibility in fluids (#967)
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public static ItemStack getWornItem(Entity entity) {
if (!(entity instanceof LivingEntity livingEntity)) {
return null;
}
return livingEntity.getItemBySlot(SLOT);
ItemStack stack = livingEntity.getItemBySlot(SLOT);
return stack.getItem() instanceof DivingHelmetItem ? stack : null;
}

public static void breatheUnderwater(LivingEntity entity) {
Expand Down

0 comments on commit ad64c63

Please sign in to comment.