From 7fbe4a0126011807214cba8299a23a6320b730e5 Mon Sep 17 00:00:00 2001 From: cflep <62251178+cflep@users.noreply.github.com> Date: Fri, 18 Dec 2020 22:10:14 +0100 Subject: [PATCH] Added dimension check to nether portal (#5068) + Added dimension check to nether portal --- src/Blocks/BlockFire.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Blocks/BlockFire.h b/src/Blocks/BlockFire.h index 280b24a03..8e1f7df9a 100644 --- a/src/Blocks/BlockFire.h +++ b/src/Blocks/BlockFire.h @@ -42,6 +42,12 @@ private: - Loop through boundary variables, and fill with portal blocks based on Dir with meta from Dir */ + if (a_WorldInterface.GetDimension() == dimEnd) + { + // Can only create portals in the Nether and Overworld (GH #5009): + return; + } + Scratch Scratch; // a_BlockY - 1: Because we want the block below the fire