Skip to content

Commit

Permalink
added null check to WorldGenRegionMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
pietro-lopes committed Feb 18, 2024
1 parent ebc7623 commit ddec486
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 ddec486

Please sign in to comment.