mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Added grass paths, farmland and botania alt grasses to the blocks that can be dug for pebbles in garden of glass. Closes #1989
This commit is contained in:
1 parent
11cc1b2767
commit
fe01b421e7
1 file changed
+3
-1
@@ -12,6 +12,8 @@ package vazkii.botania.common.world;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
@@ -72,7 +74,7 @@ public final class SkyblockWorldEvents {
|
||||
ItemStack equipped = event.getItemStack();
|
||||
if(equipped == null && event.getEntityPlayer().isSneaking()) {
|
||||
Block block = event.getWorld().getBlockState(event.getPos()).getBlock();
|
||||
if(block == Blocks.GRASS || block == Blocks.DIRT) {
|
||||
if(ImmutableSet.of(Blocks.GRASS, Blocks.GRASS_PATH, Blocks.FARMLAND, Blocks.DIRT, ModBlocks.altGrass).contains(block)) {
|
||||
if(event.getWorld().isRemote)
|
||||
event.getEntityPlayer().swingArm(event.getHand());
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user