Fixes #1515
This commit is contained in:
parent
fc2c4cce0c
commit
c20e1c72a9
1 changed files with 4 additions and 1 deletions
|
@ -154,7 +154,10 @@ public class BlockLamp extends BaseTileBlock {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static EnumFacing getFacing(IBlockState state) {
|
public static EnumFacing getFacing(IBlockState state) {
|
||||||
return (EnumFacing)state.getValue(FACING);
|
if(!state.getProperties().containsKey(FACING)){
|
||||||
|
return EnumFacing.NORTH;
|
||||||
|
}
|
||||||
|
return state.getValue(FACING);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setFacing(EnumFacing facing, World world, BlockPos pos) {
|
public static void setFacing(EnumFacing facing, World world, BlockPos pos) {
|
||||||
|
|
Loading…
Reference in a new issue