Prevent portal activating in the Nether
This commit is contained in:
parent
37cd89d3f2
commit
adf2494c9a
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue