From e5cfe0cd96a67b493b91e7576ec0341452c23855 Mon Sep 17 00:00:00 2001 From: STRWarrior Date: Sat, 13 Jun 2015 14:57:51 +0200 Subject: Added a size check for portals. Made the portal size configurable Alpha-sorted SetXYZNetherPortalXYZ functions --- src/World.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/World.cpp') 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); -- cgit v1.2.3