Skip to content

Commit

Permalink
Fixed heating/cooling blocks not checking for the lit/powered state p…
Browse files Browse the repository at this point in the history
…roperly
  • Loading branch information
Forstride committed Feb 10, 2024
1 parent 3430eec commit e165dae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ public int getTicksHyperthermic(Player player)
@Override
public boolean isHeating(BlockState state)
{
return state.is(ModTags.Blocks.HEATING_BLOCKS) && (!state.hasProperty(CampfireBlock.LIT) || state.getValue(CampfireBlock.LIT) || !state.hasProperty(CopperBulbBlock.POWERED) || state.getValue(CopperBulbBlock.POWERED));
return state.is(ModTags.Blocks.HEATING_BLOCKS) && ((state.hasProperty(CampfireBlock.LIT) && state.getValue(CampfireBlock.LIT)) || (state.hasProperty(CopperBulbBlock.POWERED) && state.getValue(CopperBulbBlock.POWERED)));
}

@Override
public boolean isCooling(BlockState state)
{
return state.is(ModTags.Blocks.COOLING_BLOCKS) && (!state.hasProperty(CampfireBlock.LIT) || state.getValue(CampfireBlock.LIT) || !state.hasProperty(CopperBulbBlock.POWERED) || state.getValue(CopperBulbBlock.POWERED));
return state.is(ModTags.Blocks.COOLING_BLOCKS) && ((state.hasProperty(CampfireBlock.LIT) && state.getValue(CampfireBlock.LIT)) || (state.hasProperty(CopperBulbBlock.POWERED) && state.getValue(CopperBulbBlock.POWERED)));
}

@Override
Expand Down

0 comments on commit e165dae

Please sign in to comment.