mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Closes #578
This commit is contained in:
parent
04453f7ca1
commit
7a171c939a
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue