summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-18 21:45:10 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-18 21:45:10 +0100
commit23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8 (patch)
tree1a296ced512584e7e04d22263375ba3a6f38f813 /src/World.cpp
parentMerge remote-tracking branch 'origin/master' into awesometnt (diff)
downloadcuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar.gz
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar.bz2
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar.lz
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar.xz
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.tar.zst
cuberite-23ffaa19b7c93f076a2d5a85018f7fb1a2260ea8.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index cf18e3a45..18109b2af 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -578,13 +578,15 @@ void cWorld::Start(void)
m_IsSugarcaneBonemealable = IniFile.GetValueSetB("Plants", "IsSugarcaneBonemealable", false);
m_IsDeepSnowEnabled = IniFile.GetValueSetB("Physics", "DeepSnow", true);
m_ShouldLavaSpawnFire = IniFile.GetValueSetB("Physics", "ShouldLavaSpawnFire", true);
- m_bTNTSpawnsShrapnel = IniFile.GetValueSetB("Physics", "IsTNTShrapnelEnabled", true);
+ m_TNTShrapnelLevel = IniFile.GetValueSetI("Physics", "TNTShrapnelLevel", 2);
m_bCommandBlocksEnabled = IniFile.GetValueSetB("Mechanics", "CommandBlocksEnabled", false);
m_bEnabledPVP = IniFile.GetValueSetB("Mechanics", "PVPEnabled", true);
m_bUseChatPrefixes = IniFile.GetValueSetB("Mechanics", "UseChatPrefixes", true);
m_VillagersShouldHarvestCrops = IniFile.GetValueSetB("Monsters", "VillagersShouldHarvestCrops", true);
m_GameMode = (eGameMode)IniFile.GetValueSetI("General", "Gamemode", m_GameMode);
+ if (m_TNTShrapnelLevel > 2)
+ m_TNTShrapnelLevel = 2;
// Load allowed mobs:
const char * DefaultMonsters = "";