From 336f8302c4c34715ab28efc6d4958aa40236c700 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sat, 7 Sep 2013 23:11:35 -0500 Subject: [PATCH] Have spout code handle renderdata not being defined yet --- src/main/java/org/dynmap/bukkit/SpoutPluginBlocks.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/dynmap/bukkit/SpoutPluginBlocks.java b/src/main/java/org/dynmap/bukkit/SpoutPluginBlocks.java index 57b6c0be..69155376 100644 --- a/src/main/java/org/dynmap/bukkit/SpoutPluginBlocks.java +++ b/src/main/java/org/dynmap/bukkit/SpoutPluginBlocks.java @@ -228,7 +228,10 @@ public class SpoutPluginBlocks { } String rslt = sb.toString(); /* Now, generate spout texture file - see if changed */ - File st = new File(datadir, "renderdata/spout-texture.txt"); + File renderdata = new File(datadir, "renderdata"); + if (renderdata.exists() == false) + renderdata.mkdirs(); + File st = new File(renderdata, "spout-texture.txt"); if(st.exists()) { FileReader fr = null; StringBuilder sbold = new StringBuilder();