Fixes #271
This commit is contained in:
parent
25b5715ab8
commit
19d269b1de
24 changed files with 38 additions and 34 deletions
|
@ -44,6 +44,9 @@ public class BlockGrinder extends BlockMachineBase {
|
|||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z,
|
||||
EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
if(fillBlockWithFluid(world, x, y, z, player, side, hitX, hitY, hitZ)){
|
||||
return true;
|
||||
}
|
||||
if (!player.isSneaking())
|
||||
player.openGui(Core.INSTANCE, GuiHandler.grinderID, world, x, y,
|
||||
z);
|
||||
|
|
|
@ -41,6 +41,9 @@ public class BlockIndustrialSawmill extends BlockMachineBase {
|
|||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z,
|
||||
EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
if(fillBlockWithFluid(world, x, y, z, player, side, hitX, hitY, hitZ)){
|
||||
return true;
|
||||
}
|
||||
if (!player.isSneaking())
|
||||
player.openGui(Core.INSTANCE, GuiHandler.sawMillID, world, x, y,
|
||||
z);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue