From 7da1051d5fd6f75fceb9bd638b272a663cd911a6 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Tue, 7 Aug 2012 23:39:14 -0500 Subject: [PATCH] Clean up spout-textures.txt when spout is disabled (avoid block id conflicts) --- src/main/java/org/dynmap/bukkit/DynmapPlugin.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/dynmap/bukkit/DynmapPlugin.java b/src/main/java/org/dynmap/bukkit/DynmapPlugin.java index a51ba332..278dd0d5 100644 --- a/src/main/java/org/dynmap/bukkit/DynmapPlugin.java +++ b/src/main/java/org/dynmap/bukkit/DynmapPlugin.java @@ -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(); + } } }