summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockFire.h
diff options
context:
space:
mode:
authorcflep <62251178+cflep@users.noreply.github.com>2020-12-18 22:10:14 +0100
committerGitHub <noreply@github.com>2020-12-18 22:10:14 +0100
commit7fbe4a0126011807214cba8299a23a6320b730e5 (patch)
treecf1a89f9d3e8c25c769f4323765e0c9814b79bab /src/Blocks/BlockFire.h
parentAdded the ability for white beds to be dyed (#5077) (diff)
downloadcuberite-7fbe4a0126011807214cba8299a23a6320b730e5.tar
cuberite-7fbe4a0126011807214cba8299a23a6320b730e5.tar.gz
cuberite-7fbe4a0126011807214cba8299a23a6320b730e5.tar.bz2
cuberite-7fbe4a0126011807214cba8299a23a6320b730e5.tar.lz
cuberite-7fbe4a0126011807214cba8299a23a6320b730e5.tar.xz
cuberite-7fbe4a0126011807214cba8299a23a6320b730e5.tar.zst
cuberite-7fbe4a0126011807214cba8299a23a6320b730e5.zip
Diffstat (limited to 'src/Blocks/BlockFire.h')
-rw-r--r--src/Blocks/BlockFire.h6
1 files changed, 6 insertions, 0 deletions
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