Clean up spout-textures.txt when spout is disabled (avoid block id conflicts)
This commit is contained in:
parent
ddf14b7c3b
commit
7da1051d5f
1 changed files with 5 additions and 0 deletions
|
|
@ -111,6 +111,11 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
|||
Log.info("Detected Spout - Support Disabled");
|
||||
}
|
||||
}
|
||||
if(!has_spout) { /* If not, clean up old spout texture, if needed */
|
||||
File st = new File(core.getDataFolder(), "renderdata/spout-texture.txt");
|
||||
if(st.exists())
|
||||
st.delete();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue