Improve handling of /reload, clean up dead code

This commit is contained in:
Mike Primm 2011-07-24 23:23:24 -05:00
parent d33d75b0d0
commit e5a7c05fc5
23 changed files with 279 additions and 338 deletions

View file

@ -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) {