Clean up spout-textures.txt when spout is disabled (avoid block id conflicts)

This commit is contained in:
Mike Primm 2012-08-07 23:39:14 -05:00
parent ddf14b7c3b
commit 7da1051d5f

View File

@ -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();
}
} }
} }