Skip to content

Commit

Permalink
MixinBlockBeaconAsyncUpdate: make the injection cancellable
Browse files Browse the repository at this point in the history
this code has never worked, and nobody noticed because it was always throwing an exception on the stupid HTTP thread pool which gets used here for some reason, so the exception always got silently swallowed.
  • Loading branch information
DaMatrix committed Jan 14, 2024
1 parent e77d3f2 commit 871e765
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class MixinBlockBeaconAsyncUpdate {
@Shadow(remap = false, aliases = "field_180358_a") @Final World val$worldIn;
@Shadow(remap = false, aliases = "field_180357_b") @Final BlockPos val$glassPos;

@Inject(method = "run", at = @At("HEAD"))
@Inject(method = "run", at = @At("HEAD"), cancellable = true)
private void runCubicChunks(CallbackInfo ci) {
if (!((ICubicWorld) val$worldIn).isCubicWorld()) {
return;
Expand Down

0 comments on commit 871e765

Please sign in to comment.