From 7a171c939ae887d4855f7f4ab62b02f55610d130 Mon Sep 17 00:00:00 2001 From: Shadows_of_Fire Date: Sat, 29 Jul 2017 19:03:45 -0400 Subject: [PATCH] Closes #578 --- .../actuallyadditions/mod/tile/TileEntityHeatCollector.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityHeatCollector.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityHeatCollector.java index 0631cbff9..2d46d9d71 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityHeatCollector.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityHeatCollector.java @@ -12,8 +12,10 @@ package de.ellpeck.actuallyadditions.mod.tile; import de.ellpeck.actuallyadditions.mod.util.WorldUtil; import net.minecraft.block.Block; +import net.minecraft.block.BlockMagma; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; +import net.minecraft.init.Blocks; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.EnumFacing; @@ -64,7 +66,7 @@ public class TileEntityHeatCollector extends TileEntityBase implements ISharingE BlockPos coords = this.pos.offset(WorldUtil.getDirectionBySidesInOrder(i)); IBlockState state = this.world.getBlockState(coords); Block block = state.getBlock(); - if(block != null && this.world.getBlockState(coords).getMaterial() == Material.LAVA && block.getMetaFromState(state) == 0){ + if(block != null && (this.world.getBlockState(coords).getMaterial() == Material.LAVA && block.getMetaFromState(state) == 0) || this.world.getBlockState(coords).getBlock() instanceof BlockMagma){ blocksAround.add(i); } }