Prevent portal activating in the Nether

This commit is contained in:
Aleksey 2020-10-30 22:35:40 +03:00
parent 37cd89d3f2
commit adf2494c9a
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,6 @@ import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks; import net.minecraft.block.Blocks;
import net.minecraft.block.NetherPortalBlock; import net.minecraft.block.NetherPortalBlock;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.world.ServerWorld; import net.minecraft.server.world.ServerWorld;
import net.minecraft.sound.SoundCategory; import net.minecraft.sound.SoundCategory;

View file

@ -79,7 +79,8 @@ public class EternalRitual {
private boolean isValid() { private boolean isValid() {
return world != null && !world.isClient() && return world != null && !world.isClient() &&
center != null && axis != null; center != null && axis != null &&
world.getRegistryKey() != World.NETHER;
} }
public void checkStructure() { public void checkStructure() {