Skip to content

Commit d8c1043

Browse files
committed
Use the state provided by the method
1 parent 15de24f commit d8c1043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/melontini/andromeda/modules/world/falling_beenests/mixin/BeehiveBlockEntityMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public BeehiveBlockEntityMixin(BlockEntityType<?> type, BlockPos pos, BlockState
3333

3434
@Inject(at = @At("HEAD"), method = "serverTick")
3535
private static void andromeda$fallingHive(@NotNull World world, BlockPos pos, BlockState state, BeehiveBlockEntity beehiveBlockEntity, CallbackInfo ci) {
36-
if (world.getBlockState(pos).getBlock() != Blocks.BEE_NEST) return;
36+
if (state.getBlock() != Blocks.BEE_NEST) return;
3737

3838
if (world.am$get(CanBeeNestsFall.class).enabled && world.random.nextInt(32000) == 0) {
3939
if (!world.getBlockState(pos.offset(Direction.DOWN)).isAir()) return;

0 commit comments

Comments
 (0)