Have spout code handle renderdata not being defined yet

This commit is contained in:
Mike Primm 2013-09-07 23:11:35 -05:00
parent d8ccc26109
commit 336f8302c4

View File

@ -228,7 +228,10 @@ public class SpoutPluginBlocks {
} }
String rslt = sb.toString(); String rslt = sb.toString();
/* Now, generate spout texture file - see if changed */ /* 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()) { if(st.exists()) {
FileReader fr = null; FileReader fr = null;
StringBuilder sbold = new StringBuilder(); StringBuilder sbold = new StringBuilder();