Skip to content

Commit

Permalink
Fixed the Ender Brewing Stand Menu to open
Browse files Browse the repository at this point in the history
  • Loading branch information
Starexify committed Jan 9, 2025
1 parent 6f272bf commit 077a7f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/net/nova/nmt/block/EnderBrewingStandBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.entity.BlockEntityTicker;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraft.world.level.block.entity.BrewingStandBlockEntity;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
Expand Down Expand Up @@ -72,7 +71,7 @@ protected VoxelShape getShape(BlockState state, BlockGetter level, BlockPos pos,

@Override
protected InteractionResult useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) {
if (!level.isClientSide && level.getBlockEntity(pos) instanceof BrewingStandBlockEntity brewingstandblockentity) {
if (!level.isClientSide && level.getBlockEntity(pos) instanceof EnderBrewingStandBlockEntity brewingstandblockentity) {
player.openMenu(brewingstandblockentity);
player.awardStat(Stats.INTERACT_WITH_BREWINGSTAND);
}
Expand Down

0 comments on commit 077a7f8

Please sign in to comment.