Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyces committed Apr 2, 2024
1 parent 088b5e1 commit c72d13b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public NysianGrapeVineBlock(Settings settings) {
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) {
if (state.get(AGE) >= 3) {
if (!world.isClient) {
dropStack(world, pos, new ItemStack(ModItems.NYSIAN_GRAPES, MathHelper.nextInt(world.random, 1, 2)));
dropStack(world, pos, new ItemStack(ModItems.NYSIAN_GRAPES, world.random.nextBetween(1, 2)));
world.playSound(null, pos, SoundEvents.BLOCK_SWEET_BERRY_BUSH_PICK_BERRIES, SoundCategory.BLOCKS, 1.0F, 0.8F + world.random.nextFloat() * 0.4F);
world.setBlockState(pos, state.with(AGE, 0));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ public static void spawnInventory(World world, BlockPos pos, PlayerEntity player
if (be instanceof WoodyGrowthCacheBlockEntity cache) {
cache.setPlayerUuid(player);
i = cache.fill(list, i);
} else {
throw new IllegalStateException("Something has gone wrong."); // TODO?
}
}
}
Expand Down

0 comments on commit c72d13b

Please sign in to comment.