Skip to content

Commit

Permalink
Fix create ponder crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Aug 5, 2023
1 parent f0a5a75 commit 679bbc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ fabric_version=0.83.0+1.20.1
mixin_extras_version=0.2.0-beta.9

# Mod Properties
mod_version=0.4.7
mod_version=0.4.8
maven_group=xyz.nucleoid
archives_base_name=stimuli
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package xyz.nucleoid.stimuli.mixin.world;

import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.ActionResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.ChunkRegion;
import net.minecraft.world.ServerWorldAccess;
import net.minecraft.world.WorldAccess;
import net.minecraft.world.dimension.NetherPortal;
Expand All @@ -22,7 +24,7 @@ public class NetherPortalMixin {

@Inject(method = "isValid", at = @At("HEAD"), cancellable = true)
private void isValid(CallbackInfoReturnable<Boolean> ci) {
if (!(this.world instanceof ServerWorldAccess) || this.lowerCorner == null) {
if (!(this.world instanceof ServerWorld || this.world instanceof ChunkRegion) || this.lowerCorner == null) {
return;
}

Expand Down

0 comments on commit 679bbc4

Please sign in to comment.