small corrections

This commit is contained in:
Jottyfan 2023-12-02 20:23:30 +01:00
parent 57a3ebfdc0
commit 7370c26b82
2 changed files with 5 additions and 3 deletions

View File

@ -63,6 +63,6 @@ public class BlockCottonplant extends CropBlock {
spawnHarvested(world, pos, state);
world.setBlockState(pos, state.with(AGE, 0));
}
return super.onUse(state, world, pos, player, hand, hitResult);
return ActionResult.PASS;
}
}

View File

@ -44,7 +44,9 @@ public class BlockSulforpad extends CropBlock {
@Override
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SULPHOR, 2) });
Integer age = this.getAge(state);
Integer number = age < 3 ? 1 : (age < 6 ? 2 : 3);
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SULPHOR, number) });
}
@Override
@ -77,7 +79,7 @@ public class BlockSulforpad extends CropBlock {
spawnHarvested(world, pos, state);
world.setBlockState(pos, state.with(AGE, 0));
}
return super.onUse(state, world, pos, player, hand, hitResult);
return ActionResult.PASS;
}
@Override