Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Starexify committed Oct 28, 2024
1 parent 902438a commit 248cd85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/net/nova/nmt/block/EnderBrewingStandBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected InteractionResult useWithoutItem(BlockState state, Level level, BlockP
} else {
BlockEntity blockentity = level.getBlockEntity(pos);
if (blockentity instanceof EnderBrewingStandBlockEntity) {
player.openMenu((EnderBrewingStandBlockEntity)blockentity);
player.openMenu((EnderBrewingStandBlockEntity) blockentity);
player.awardStat(Stats.INTERACT_WITH_BREWINGSTAND);
}

Expand All @@ -93,10 +93,10 @@ protected InteractionResult useWithoutItem(BlockState state, Level level, BlockP

@Override
public void animateTick(BlockState state, Level level, BlockPos pos, RandomSource random) {
double d0 = (double)pos.getX() + 0.4 + (double)random.nextFloat() * 0.2;
double d1 = (double)pos.getY() + 0.7 + (double)random.nextFloat() * 0.3;
double d2 = (double)pos.getZ() + 0.4 + (double)random.nextFloat() * 0.2;
level.addParticle(ParticleTypes.SMOKE, d0, d1, d2, 0.0, 0.0, 0.0);
double d0 = (double) pos.getX() + 0.4 + (double) random.nextFloat() * 0.2;
double d1 = (double) pos.getY() + 0.7 + (double) random.nextFloat() * 0.3;
double d2 = (double) pos.getZ() + 0.4 + (double) random.nextFloat() * 0.2;
level.addParticle(ParticleTypes.END_ROD, d0, d1, d2, 0.0, 0.0, 0.0);
}

@Override
Expand Down

0 comments on commit 248cd85

Please sign in to comment.