]> git.localhorst.tv Git - blank.git/blobdiff - src/world/block.cpp
faster chunk culling test
[blank.git] / src / world / block.cpp
index 937291810c5f0557a8d52d1b862316a601ce28ba..e99c5be254b2fbb16309ca31b946bbf0be215071 100644 (file)
@@ -148,9 +148,11 @@ void BlockType::Read(
                if (name == "visible") {
                        visible = in.GetBool();
                } else if (name == "texture") {
+                       textures.clear();
                        in.ReadString(name);
                        textures.push_back(tex_index.GetID(name));
                } else if (name == "textures") {
+                       textures.clear();
                        in.Skip(Token::BRACKET_OPEN);
                        while (in.Peek().type != Token::BRACKET_CLOSE) {
                                in.ReadString(name);