1
0

Added dimension check to nether portal (#5068)

+ Added dimension check to nether portal
This commit is contained in:
cflep 2020-12-18 22:10:14 +01:00 committed by GitHub
parent 28b8febce4
commit 7fbe4a0126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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