diff options
author | madmaxoft <github@xoft.cz> | 2013-10-11 10:12:36 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-11 10:12:36 +0200 |
commit | 47b64b63fabea0f35346934d5bede99f9816add5 (patch) | |
tree | 8746c0a8b6a526c7481aea76b990694e4518480c /source/BlockID.cpp | |
parent | Generator: Renamed cBiomeGenerator's Initialize() to InitializeBiomeGen(). (diff) | |
download | cuberite-47b64b63fabea0f35346934d5bede99f9816add5.tar cuberite-47b64b63fabea0f35346934d5bede99f9816add5.tar.gz cuberite-47b64b63fabea0f35346934d5bede99f9816add5.tar.bz2 cuberite-47b64b63fabea0f35346934d5bede99f9816add5.tar.lz cuberite-47b64b63fabea0f35346934d5bede99f9816add5.tar.xz cuberite-47b64b63fabea0f35346934d5bede99f9816add5.tar.zst cuberite-47b64b63fabea0f35346934d5bede99f9816add5.zip |
Diffstat (limited to 'source/BlockID.cpp')
-rw-r--r-- | source/BlockID.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/BlockID.cpp b/source/BlockID.cpp index d91524de5..0c1cb3265 100644 --- a/source/BlockID.cpp +++ b/source/BlockID.cpp @@ -518,6 +518,21 @@ eDamageType StringToDamageType(const AString & a_DamageTypeString) +cItem GetIniItemSet(cIniFile & a_IniFile, const char * a_Section, const char * a_Key, const char * a_Default) +{ + AString ItemStr = a_IniFile.GetValueSet(a_Section, a_Key, a_Default); + cItem res; + if (!StringToItem(ItemStr, res)) + { + res.Empty(); + } + return res; +} + + + + + // This is actually just some code that needs to run at program startup, so it is wrapped into a global var's constructor: class cBlockPropertiesInitializer { |