Clean up spout-textures.txt when spout is disabled (avoid block id conflicts)
This commit is contained in:
parent
edb6f75014
commit
dcd855b541
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");
|
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