Skip to content

Commit

Permalink
Merge pull request #5172 from pietro-lopes/1.20-fix-region-mixin
Browse files Browse the repository at this point in the history
added null check to WorldGenRegionMixin
  • Loading branch information
TheBv authored Feb 18, 2024
2 parents ebc7623 + ddec486 commit 5233102
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
public class WorldGenRegionMixin {
@Inject(method = "ensureCanWrite", at = @At(value = "INVOKE", target = "Lnet/minecraft/Util;logAndPauseIfInIde(Ljava/lang/String;)V", shift = At.Shift.BEFORE), cancellable = true)
private void skipLog(final BlockPos position, final CallbackInfoReturnable<Boolean> callback) {
if (this.currentlyGenerating.get().contains(IceAndFire.MODID)) {
if (this.currentlyGenerating != null && this.currentlyGenerating.get().contains(IceAndFire.MODID)) {
callback.setReturnValue(false);
}
}
Expand Down

0 comments on commit 5233102

Please sign in to comment.