mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Fixed alternate grass types not breaking faster with a shovel and not being able to sustain sugar cane. Closes #1711
This commit is contained in:
1 parent
6b66163958
commit
68ea0b213e
1 file changed
+7
-1
@@ -50,6 +50,11 @@ public class BlockAltGrass extends BlockMod implements ILexiconable {
|
||||
setTickRandomly(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isToolEffective(String type, int metadata) {
|
||||
return type.equals("shovel");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block setBlockName(String par1Str) {
|
||||
GameRegistry.registerBlock(this, ItemBlockWithMetadataAndName.class, par1Str);
|
||||
@@ -108,7 +113,8 @@ public class BlockAltGrass extends BlockMod implements ILexiconable {
|
||||
|
||||
@Override
|
||||
public boolean canSustainPlant(IBlockAccess world, int x, int y, int z, ForgeDirection direction, IPlantable plantable) {
|
||||
return plantable.getPlantType(world, x, y - 1, z) == EnumPlantType.Plains;
|
||||
EnumPlantType type = plantable.getPlantType(world, x, y - 1, z);
|
||||
return type == EnumPlantType.Plains || type == EnumPlantType.Beach;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user