Fixed TOP\Waila icon for active machine
This commit is contained in:
parent
eab088c094
commit
9ac8b31599
2 changed files with 4 additions and 3 deletions
|
@ -75,6 +75,7 @@ public class BlockSolarPanel extends BaseTileBlock {
|
||||||
return state.getValue(TYPE).ordinal() + active;
|
return state.getValue(TYPE).ordinal() + active;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected BlockStateContainer createBlockState() {
|
protected BlockStateContainer createBlockState() {
|
||||||
return new BlockStateContainer(this, ACTIVE, TYPE);
|
return new BlockStateContainer(this, ACTIVE, TYPE);
|
||||||
}
|
}
|
||||||
|
@ -101,7 +102,8 @@ public class BlockSolarPanel extends BaseTileBlock {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player) {
|
public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player) {
|
||||||
return new ItemStack(Item.getItemFromBlock(this),1,getMetaFromState(world.getBlockState(pos)));
|
//return new ItemStack(Item.getItemFromBlock(this), 1, getMetaFromState(world.getBlockState(pos)));
|
||||||
|
return new ItemStack(Item.getItemFromBlock(this), 1, world.getBlockState(pos).getValue(TYPE).ordinal());
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public int damageDropped(IBlockState state) {
|
public int damageDropped(IBlockState state) {
|
||||||
|
|
|
@ -12,10 +12,9 @@
|
||||||
"variants": {
|
"variants": {
|
||||||
"inventory": {
|
"inventory": {
|
||||||
"transform": "forge:default-block",
|
"transform": "forge:default-block",
|
||||||
"model": "cube_bottom_top",
|
"model": "orientable",
|
||||||
"textures": {}
|
"textures": {}
|
||||||
},
|
},
|
||||||
"normal": [{}],
|
|
||||||
"active": {
|
"active": {
|
||||||
"true": {
|
"true": {
|
||||||
"textures": {
|
"textures": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue