mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Track these IF they're somehow full-grown when placed.
This commit is contained in:
parent
9463e210b8
commit
6772f4f169
@ -56,6 +56,17 @@ public final class BlockUtils {
|
||||
case EMERALD_ORE:
|
||||
return true;
|
||||
|
||||
case CARROT:
|
||||
case CROPS:
|
||||
case POTATO:
|
||||
return blockState.getRawData() == CropState.RIPE.getData();
|
||||
|
||||
case NETHER_WARTS:
|
||||
return blockState.getRawData() == (byte) 0x3;
|
||||
|
||||
case COCOA:
|
||||
return ((CocoaPlant) blockState.getData()).getSize() == CocoaPlantSize.LARGE;
|
||||
|
||||
default:
|
||||
return ModUtils.getCustomBlock(blockState) != null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user