You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Love the mods you've created. I'm using the vanilla code to have kelp be used as a bonemeal substitute. However with Pam's Harvestcraft installed this does not work anymore. Do you have an idea on what to change to make it compatible with your custom crops?
The code used:
public static boolean applyBonemeal(ItemStack itemstack, World world, BlockPos pos, PlayerEntity player) {
BlockState blockstate = world.getBlockState(pos);
int hook = ForgeEventFactory.onApplyBonemeal(player, world, pos, blockstate, itemstack);
if (hook != 0) return hook > 0;
if (blockstate.getBlock() instanceof IGrowable) {
IGrowable igrowable = (IGrowable)blockstate.getBlock();
if (igrowable.isValidBonemealTarget(world, pos, blockstate, world.isClientSide)) {
if (world instanceof ServerWorld) {
if (igrowable.isBonemealSuccess(world, world.random, pos, blockstate)) {
igrowable.performBonemeal((ServerWorld)world, world.random, pos, blockstate);
}
if (!player.isCreative()) {
itemstack.shrink(1);
}
}
return true;
}
}
return false;
}
The text was updated successfully, but these errors were encountered:
Hi!
Love the mods you've created. I'm using the vanilla code to have kelp be used as a bonemeal substitute. However with Pam's Harvestcraft installed this does not work anymore. Do you have an idea on what to change to make it compatible with your custom crops?
The code used:
The text was updated successfully, but these errors were encountered: