Bring back instanceof check
@@ -172,7 +172,7 @@ public static boolean canHarvestBlock(@Nonnull Block block, @Nonnull EntityPlaye
final IPhaseState<?> phaseState = peek.state;
if (!phaseState.isInteraction()) {
// Sponge Start - Add the changeblockevent.pre check here before we bother with item stacks.
- if (!((IMixinWorld) world).isFake() && SpongeImplHooks.isMainThread()) {
+ if (world instanceof IMixinWorldServer && !((IMixinWorld) world).isFake() && SpongeImplHooks.isMainThread()) {
try (CauseStackManager.StackFrame frame = Sponge.getCauseStackManager().pushCauseFrame()) {
// Might as well provide the active item in use.
frame.addContext(EventContextKeys.USED_ITEM, ItemStackUtil.snapshotOf(player.getActiveItemStack()));
