mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-05 18:10:09 +03:00
Biome colour and grass side tint options (#98)
* Added biome colour and grass side tint options * Moved GrassColor and FoliageColor to client/renderer/ * * Fix some build issues. * * Add the new files to the CMakeLists.txt --------- Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
This commit is contained in:
@@ -141,6 +141,11 @@ void PatchManager::LoadPatchData(const std::string& patchData)
|
||||
ReadInt(lineStream, m_nMetalSideYOffset);
|
||||
continue;
|
||||
}
|
||||
if (command == "grass_sides_tint")
|
||||
{
|
||||
ReadBool(lineStream, m_bGrassSidesTinted);
|
||||
continue;
|
||||
}
|
||||
|
||||
LOG_W("Unknown command %s from patch data.", command.c_str());
|
||||
}
|
||||
@@ -217,6 +222,11 @@ bool PatchManager::IsGlassSemiTransparent()
|
||||
return m_bGlassSemiTransparent;
|
||||
}
|
||||
|
||||
bool PatchManager::IsGrassSidesTinted()
|
||||
{
|
||||
return m_bGrassSidesTinted;
|
||||
}
|
||||
|
||||
void PatchManager::ReadBool(std::istream& is, bool& b)
|
||||
{
|
||||
std::string flag;
|
||||
|
||||
Reference in New Issue
Block a user