summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-06-28 21:04:34 +0200
committerMattes D <github@xoft.cz>2015-06-28 21:04:34 +0200
commitfe81a0dcde1466c846ef7afe5356e051a4e3cc1d (patch)
tree458160137feb67c73766b1249bc8d686c2c29e3a /src/World.cpp
parentuse atomic for state, to avoid torn reads (diff)
parentAdded a size check for portals. (diff)
downloadcuberite-fe81a0dcde1466c846ef7afe5356e051a4e3cc1d.tar
cuberite-fe81a0dcde1466c846ef7afe5356e051a4e3cc1d.tar.gz
cuberite-fe81a0dcde1466c846ef7afe5356e051a4e3cc1d.tar.bz2
cuberite-fe81a0dcde1466c846ef7afe5356e051a4e3cc1d.tar.lz
cuberite-fe81a0dcde1466c846ef7afe5356e051a4e3cc1d.tar.xz
cuberite-fe81a0dcde1466c846ef7afe5356e051a4e3cc1d.tar.zst
cuberite-fe81a0dcde1466c846ef7afe5356e051a4e3cc1d.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp
index f4fd696ee..71f4aeae3 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -464,6 +464,10 @@ void cWorld::Start(void)
m_bCommandBlocksEnabled = IniFile.GetValueSetB("Mechanics", "CommandBlocksEnabled", false);
m_bEnabledPVP = IniFile.GetValueSetB("Mechanics", "PVPEnabled", true);
m_bUseChatPrefixes = IniFile.GetValueSetB("Mechanics", "UseChatPrefixes", true);
+ m_MinNetherPortalWidth = IniFile.GetValueSetI("Mechanics", "MinNetherPortalWidth", 2);
+ m_MaxNetherPortalWidth = IniFile.GetValueSetI("Mechanics", "MaxNetherPortalWidth", 21);
+ m_MinNetherPortalHeight = IniFile.GetValueSetI("Mechanics", "MinNetherPortalHeight", 3);
+ m_MaxNetherPortalHeight = IniFile.GetValueSetI("Mechanics", "MaxNetherPortalHeight", 21);
m_VillagersShouldHarvestCrops = IniFile.GetValueSetB("Monsters", "VillagersShouldHarvestCrops", true);
m_IsDaylightCycleEnabled = IniFile.GetValueSetB("General", "IsDaylightCycleEnabled", true);
int GameMode = IniFile.GetValueSetI("General", "Gamemode", (int)m_GameMode);