mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-29 12:07:41 +01:00
Merge pull request #309 from mikeprimm/master
Put model and texture data into own subdirectory (renderdata)
This commit is contained in:
commit
e601a2c661
@ -31,8 +31,6 @@
|
||||
<include>shaders.txt</include>
|
||||
<include>perspectives.txt</include>
|
||||
<include>lightings.txt</include>
|
||||
<include>models.txt</include>
|
||||
<include>texture.txt</include>
|
||||
<include>worlds.txt.sample</include></includes></fileSet>
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/texturepacks</directory>
|
||||
@ -40,6 +38,9 @@
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/templates</directory>
|
||||
<outputDirectory>/dynmap/templates</outputDirectory></fileSet>
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/renderdata</directory>
|
||||
<outputDirectory>/dynmap/renderdata</outputDirectory></fileSet>
|
||||
</fileSets>
|
||||
<files>
|
||||
<file>
|
||||
|
@ -250,18 +250,6 @@ public class HDBlockModels {
|
||||
if((m.databits & (1 << i)) != 0) {
|
||||
if(smod == null) smod = m.getScaledMap(scale);
|
||||
row[i] = smod;
|
||||
/* if((m.blockid == 50) && (i == 5)) {
|
||||
String v0 = "";
|
||||
String v = "";
|
||||
for(int x = 0; x < m.blockflags.length; x++)
|
||||
v0 = v0 + " " + m.blockflags[x];
|
||||
for(int x = 0; x < smod.length; x++) {
|
||||
v = v + " " + smod[x];
|
||||
if((x%scale) == (scale-1)) v += "|";
|
||||
}
|
||||
Log.info("src=" + v0);
|
||||
Log.info("scaled=" + v);
|
||||
} */
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -275,8 +263,8 @@ public class HDBlockModels {
|
||||
*/
|
||||
public static void loadModels(File datadir) {
|
||||
/* Load block models */
|
||||
loadModelFile(new File(datadir, "models.txt"));
|
||||
File custom = new File(datadir, "custom-models.txt");
|
||||
loadModelFile(new File(datadir, "renderdata/models.txt"));
|
||||
File custom = new File(datadir, "renderdata/custom-models.txt");
|
||||
if(custom.canRead()) {
|
||||
loadModelFile(custom);
|
||||
}
|
||||
|
@ -557,8 +557,8 @@ public class TexturePack {
|
||||
/* Initialize map with blank map for all entries */
|
||||
HDTextureMap.initializeTable();
|
||||
/* Load block models */
|
||||
loadTextureFile(new File(datadir, "texture.txt"));
|
||||
File custom = new File(datadir, "custom-texture.txt");
|
||||
loadTextureFile(new File(datadir, "renderdata/texture.txt"));
|
||||
File custom = new File(datadir, "renderdata/custom-texture.txt");
|
||||
if(custom.canRead()) {
|
||||
loadTextureFile(custom);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user