mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
The Manasteel and Elementium shovels can now make grass paths like vanilla shovels can. They can turn grass paths into farmland now.
This commit is contained in:
1 parent
3bd50bc724
commit
40775ba56b
1 file changed
+5
-2
+5
-2
@@ -99,8 +99,11 @@ public class ItemManasteelShovel extends ItemSpade implements IManaUsingItem, IS
|
||||
|
||||
Block block = world.getBlockState(pos).getBlock();
|
||||
|
||||
if(side != EnumFacing.DOWN && world.getBlockState(pos.up()).getBlock().isAir(world.getBlockState(pos.up()), world, pos.up()) && (block == Blocks.GRASS || block == Blocks.DIRT)) {
|
||||
Block block1 = Blocks.FARMLAND;
|
||||
if(side != EnumFacing.DOWN && world.getBlockState(pos.up()).getBlock().isAir(world.getBlockState(pos.up()), world, pos.up()) && (block == Blocks.GRASS || block == Blocks.DIRT || block == Blocks.GRASS_PATH)) {
|
||||
Block block1 = Blocks.GRASS_PATH;
|
||||
if(block == block1)
|
||||
block1 = Blocks.FARMLAND;
|
||||
|
||||
world.playSound(null, pos, block1.getSoundType().getStepSound(), SoundCategory.BLOCKS, (block1.getSoundType().getVolume() + 1.0F) / 2.0F, block1.getSoundType().getPitch() * 0.8F);
|
||||
|
||||
if (world.isRemote)
|
||||
|
||||
Reference in new issue
Block a user