small corrections
This commit is contained in:
parent
57a3ebfdc0
commit
7370c26b82
@ -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;
|
||||
}
|
||||
}
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user