Fixed some blocks not respecting energy and fluid saving

This commit is contained in:
Ellpeck 2015-12-16 15:02:59 +01:00
parent 96a835c475
commit 24132fa178
10 changed files with 20 additions and 0 deletions

View file

@ -114,6 +114,8 @@ public class BlockAtomicReconstructor extends BlockContainerBase{
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack stack){
int rotation = BlockPistonBase.determineOrientation(world, x, y, z, player);
world.setBlockMetadataWithNotify(x, y, z, rotation, 2);
super.onBlockPlacedBy(world, x, y, z, player, stack);
}
@Override

View file

@ -95,6 +95,8 @@ public class BlockBookletStand extends BlockContainerBase{
tile.sendUpdate();
}
}
super.onBlockPlacedBy(world, x, y, z, player, stack);
}
@Override

View file

@ -94,6 +94,8 @@ public class BlockBreaker extends BlockContainerBase{
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack stack){
int rotation = BlockPistonBase.determineOrientation(world, x, y, z, player);
world.setBlockMetadataWithNotify(x, y, z, rotation, 2);
super.onBlockPlacedBy(world, x, y, z, player, stack);
}
@Override

View file

@ -92,6 +92,8 @@ public class BlockCoffeeMachine extends BlockContainerBase{
if(rotation == 3){
world.setBlockMetadataWithNotify(x, y, z, 3, 2);
}
super.onBlockPlacedBy(world, x, y, z, player, stack);
}
@Override

View file

@ -91,6 +91,8 @@ public class BlockDirectionalBreaker extends BlockContainerBase{
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack stack){
int rotation = BlockPistonBase.determineOrientation(world, x, y, z, player);
world.setBlockMetadataWithNotify(x, y, z, rotation, 2);
super.onBlockPlacedBy(world, x, y, z, player, stack);
}
@Override

View file

@ -91,6 +91,8 @@ public class BlockDropper extends BlockContainerBase{
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack stack){
int rotation = BlockPistonBase.determineOrientation(world, x, y, z, player);
world.setBlockMetadataWithNotify(x, y, z, rotation, 2);
super.onBlockPlacedBy(world, x, y, z, player, stack);
}
@Override

View file

@ -94,6 +94,8 @@ public class BlockFluidCollector extends BlockContainerBase{
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack stack){
int rotation = BlockPistonBase.determineOrientation(world, x, y, z, player);
world.setBlockMetadataWithNotify(x, y, z, rotation, 2);
super.onBlockPlacedBy(world, x, y, z, player, stack);
}
@Override

View file

@ -147,6 +147,8 @@ public class BlockFurnaceDouble extends BlockContainerBase{
if(rotation == 3){
world.setBlockMetadataWithNotify(x, y, z, 2, 2);
}
super.onBlockPlacedBy(world, x, y, z, player, stack);
}
@Override

View file

@ -110,6 +110,8 @@ public class BlockSmileyCloud extends BlockContainerBase{
if(rotation == 3){
world.setBlockMetadataWithNotify(x, y, z, 3, 2);
}
super.onBlockPlacedBy(world, x, y, z, player, stack);
}
@Override

View file

@ -107,6 +107,8 @@ public class BlockXPSolidifier extends BlockContainerBase{
if(rotation == 3){
world.setBlockMetadataWithNotify(x, y, z, 2, 2);
}
super.onBlockPlacedBy(world, x, y, z, player, stack);
}
@Override