Skip to content

Commit

Permalink
make fluid pipes no longer hurt if the player is wearing a hazmat suit
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed May 31, 2024
1 parent adb7699 commit 0cee679
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public void entityInside(BlockState state, Level worldIn, BlockPos pos, Entity e
if (entityIn instanceof LivingEntity entity) {
if (worldIn.getBlockEntity(pos) instanceof BlockEntityFluidPipe<?> fluidPipe) {
long temp = fluidPipe.getCurrentTemperature();
if (Utils.isFullHazmatSuit(entity)) return;
applyTemperatureDamage(entity, temp, 1.0f, 1.0f);
}
}
Expand Down

0 comments on commit 0cee679

Please sign in to comment.