summaryrefslogtreecommitdiffstats
path: root/src/AssetManager.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-09 10:33:12 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-09 10:33:12 +0200
commitfd63f251c53ce15fd2e70efe97abca2f8316461d (patch)
tree12331296f1550b8cbc21d85b2d4593d509818625 /src/AssetManager.cpp
parentMore BlockStates (diff)
downloadAltCraft-fd63f251c53ce15fd2e70efe97abca2f8316461d.tar
AltCraft-fd63f251c53ce15fd2e70efe97abca2f8316461d.tar.gz
AltCraft-fd63f251c53ce15fd2e70efe97abca2f8316461d.tar.bz2
AltCraft-fd63f251c53ce15fd2e70efe97abca2f8316461d.tar.lz
AltCraft-fd63f251c53ce15fd2e70efe97abca2f8316461d.tar.xz
AltCraft-fd63f251c53ce15fd2e70efe97abca2f8316461d.tar.zst
AltCraft-fd63f251c53ce15fd2e70efe97abca2f8316461d.zip
Diffstat (limited to '')
-rw-r--r--src/AssetManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/AssetManager.cpp b/src/AssetManager.cpp
index 97833f5..5fa7990 100644
--- a/src/AssetManager.cpp
+++ b/src/AssetManager.cpp
@@ -455,6 +455,10 @@ void ParseBlockModels() {
}
textureName.insert(0, "minecraft/textures/");
texture = AssetManager::GetTexture(textureName);
+ if (textureName.find("water_flow") != std::string::npos)
+ texture.h /= 32.0f;
+ if (textureName.find("lava_flow") != std::string::npos)
+ texture.h /= 16.0f;
if (!(face.second.uv == BlockModel::ElementData::FaceData::Uv{ 0,16,0,16 }) && !(face.second.uv == BlockModel::ElementData::FaceData::Uv{ 0,0,0,0 })
&& !(face.second.uv == BlockModel::ElementData::FaceData::Uv{ 0,0,16,16 })) {