small corrections
This commit is contained in:
@ -63,6 +63,6 @@ public class BlockCottonplant extends CropBlock {
|
|||||||
spawnHarvested(world, pos, state);
|
spawnHarvested(world, pos, state);
|
||||||
world.setBlockState(pos, state.with(AGE, 0));
|
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
|
@Override
|
||||||
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
|
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
|
@Override
|
||||||
@ -77,7 +79,7 @@ public class BlockSulforpad extends CropBlock {
|
|||||||
spawnHarvested(world, pos, state);
|
spawnHarvested(world, pos, state);
|
||||||
world.setBlockState(pos, state.with(AGE, 0));
|
world.setBlockState(pos, state.with(AGE, 0));
|
||||||
}
|
}
|
||||||
return super.onUse(state, world, pos, player, hand, hitResult);
|
return ActionResult.PASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user