Improve handling of /reload, clean up dead code
This commit is contained in:
parent
d33d75b0d0
commit
e5a7c05fc5
23 changed files with 279 additions and 338 deletions
|
|
@ -265,6 +265,11 @@ public class HDBlockModels {
|
|||
* Load models
|
||||
*/
|
||||
public static void loadModels(File datadir) {
|
||||
/* Reset models-by-ID-Data cache */
|
||||
models_by_id_data.clear();
|
||||
/* Reset scaled models by scale cache */
|
||||
scaled_models_by_scale.clear();
|
||||
|
||||
/* Load block models */
|
||||
InputStream in = TexturePack.class.getResourceAsStream("/models.txt");
|
||||
if(in != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue