Some plants fixes

This commit is contained in:
paulevsGitch 2020-11-19 17:43:08 +03:00
parent 2093c747c6
commit 44dd1c35a9
3 changed files with 18 additions and 0 deletions

View file

@ -17,6 +17,7 @@ import net.minecraft.world.BlockView;
import net.minecraft.world.StructureWorldAccess;
import net.minecraft.world.World;
import ru.betterend.blocks.basis.BlockPlantWithAge;
import ru.betterend.registry.EndBlocks;
import ru.betterend.registry.EndItems;
import ru.betterend.util.MHelper;
@ -55,4 +56,9 @@ public class BlockShadowBerry extends BlockPlantWithAge {
public AbstractBlock.OffsetType getOffsetType() {
return AbstractBlock.OffsetType.NONE;
}
@Override
protected boolean isTerrain(BlockState state) {
return state.isOf(EndBlocks.SHADOW_GRASS);
}
}