Fix anvil and snow pickup
This commit is contained in:
parent
aea27f3bd6
commit
f419c4e6d5
3 changed files with 17 additions and 2 deletions
|
@ -51,6 +51,16 @@ public class ItemMekanismPaxel extends ItemMekanismTool
|
|||
return toolMaterial.getHarvestLevel() >= 2;
|
||||
}
|
||||
|
||||
if(block == Blocks.anvil)
|
||||
{
|
||||
return toolMaterial.getHarvestLevel() >= 0;
|
||||
}
|
||||
|
||||
if(block == Blocks.snow || block == Blocks.snow_layer)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if(block.getMaterial() == Material.rock)
|
||||
{
|
||||
return true;
|
||||
|
|
|
@ -47,6 +47,11 @@ public class ItemMekanismPickaxe extends ItemMekanismTool
|
|||
return toolMaterial.getHarvestLevel() >= 2;
|
||||
}
|
||||
|
||||
if(block == Blocks.anvil)
|
||||
{
|
||||
return toolMaterial.getHarvestLevel() >= 0;
|
||||
}
|
||||
|
||||
if(block.getMaterial() == Material.rock)
|
||||
{
|
||||
return true;
|
||||
|
|
|
@ -16,7 +16,7 @@ public class ItemMekanismShovel extends ItemMekanismTool
|
|||
@Override
|
||||
public boolean canHarvestBlock(Block block, ItemStack stack)
|
||||
{
|
||||
if(block == Blocks.snow)
|
||||
if(block == Blocks.snow_layer)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ public class ItemMekanismShovel extends ItemMekanismTool
|
|||
{
|
||||
blocksEffectiveAgainst = (new Block[]
|
||||
{
|
||||
Blocks.grass, Blocks.dirt, Blocks.sand, Blocks.gravel, Blocks.snow, Blocks.snow, Blocks.clay, Blocks.farmland, Blocks.soul_sand, Blocks.mycelium
|
||||
Blocks.grass, Blocks.dirt, Blocks.sand, Blocks.gravel, Blocks.snow_layer, Blocks.snow, Blocks.clay, Blocks.farmland, Blocks.soul_sand, Blocks.mycelium
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue