aboutsummaryrefslogtreecommitdiff
path: root/src/scriptapi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scriptapi.cpp')
-rw-r--r--src/scriptapi.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp
index 6f16c72e7..5ef4f9972 100644
--- a/src/scriptapi.cpp
+++ b/src/scriptapi.cpp
@@ -529,6 +529,14 @@ static int l_register_node(lua_State *L)
break;
}
}
+ // Copy last value to all remaining textures
+ if(i >= 1){
+ std::string lastname = f.tname_tiles[i-1];
+ while(i < 6){
+ f.tname_tiles[i] = lastname;
+ i++;
+ }
+ }
}
lua_pop(L, 1);