Update forge 1.13.2 version
This commit is contained in:
parent
81163e16ab
commit
73486605ff
4 changed files with 14 additions and 18 deletions
|
|
@ -18,7 +18,7 @@ apply plugin: 'eclipse'
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(":DynmapCore")
|
compile project(":DynmapCore")
|
||||||
compile project(":DynmapCoreAPI")
|
compile project(":DynmapCoreAPI")
|
||||||
minecraft 'net.minecraftforge:forge:1.13.2-25.0.74'
|
minecraft 'net.minecraftforge:forge:1.13.2-25.0.191'
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|
@ -33,16 +33,12 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
mappings channel: 'snapshot', version: '20180921-1.13'
|
mappings channel: 'snapshot', version: '20190415-1.13.2'
|
||||||
|
|
||||||
runs {
|
runs {
|
||||||
server {
|
server {
|
||||||
workingDirectory project.file('run').canonicalPath
|
workingDirectory project.file('run').canonicalPath
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
replaceIn "Version.java"
|
|
||||||
replace "@VERSION@", project.version + '-' + project.ext.buildNumber
|
|
||||||
replace "@BUILD_NUMBER@", project.ext.buildNumber
|
|
||||||
}
|
}
|
||||||
|
|
||||||
project.archivesBaseName = "${project.archivesBaseName}-forge-1.13.2"
|
project.archivesBaseName = "${project.archivesBaseName}-forge-1.13.2"
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ public class ChunkSnapshot
|
||||||
this.captureFulltime = 0;
|
this.captureFulltime = 0;
|
||||||
this.hmap = nbt.getIntArray("HeightMap");
|
this.hmap = nbt.getIntArray("HeightMap");
|
||||||
this.sectionCnt = worldheight / 16;
|
this.sectionCnt = worldheight / 16;
|
||||||
if (nbt.hasKey("InhabitedTime")) {
|
if (nbt.contains("InhabitedTime")) {
|
||||||
this.inhabitedTicks = nbt.getLong("InhabitedTime");
|
this.inhabitedTicks = nbt.getLong("InhabitedTime");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -150,7 +150,7 @@ public class ChunkSnapshot
|
||||||
this.section[secnum] = cursect;
|
this.section[secnum] = cursect;
|
||||||
DynmapBlockState[] states = cursect.states;
|
DynmapBlockState[] states = cursect.states;
|
||||||
// JEI format
|
// JEI format
|
||||||
if (sec.hasKey("Palette")) {
|
if (sec.contains("Palette")) {
|
||||||
int[] p = sec.getIntArray("Palette");
|
int[] p = sec.getIntArray("Palette");
|
||||||
// Palette is list of state values, where Blocks=bit 11-4 of index, Data=bit 3-0
|
// Palette is list of state values, where Blocks=bit 11-4 of index, Data=bit 3-0
|
||||||
byte[] msb_bytes = sec.getByteArray("Blocks");
|
byte[] msb_bytes = sec.getByteArray("Blocks");
|
||||||
|
|
@ -179,7 +179,7 @@ public class ChunkSnapshot
|
||||||
}
|
}
|
||||||
// Get any additional ID data
|
// Get any additional ID data
|
||||||
byte[] addid = null;
|
byte[] addid = null;
|
||||||
if (sec.hasKey("Add")) { /* If additional data, add it */
|
if (sec.contains("Add")) { /* If additional data, add it */
|
||||||
addid = sec.getByteArray("Add");
|
addid = sec.getByteArray("Add");
|
||||||
if (addid.length < (BLOCKS_PER_SECTION / 2)) {
|
if (addid.length < (BLOCKS_PER_SECTION / 2)) {
|
||||||
addid = Arrays.copyOf(addid, (BLOCKS_PER_SECTION / 2));
|
addid = Arrays.copyOf(addid, (BLOCKS_PER_SECTION / 2));
|
||||||
|
|
@ -187,7 +187,7 @@ public class ChunkSnapshot
|
||||||
}
|
}
|
||||||
// Check for NEID additional additional ID data
|
// Check for NEID additional additional ID data
|
||||||
byte[] addid2 = null;
|
byte[] addid2 = null;
|
||||||
if (sec.hasKey("Add2")) { /* If additional data (NEID), add it */
|
if (sec.contains("Add2")) { /* If additional data (NEID), add it */
|
||||||
addid2 = sec.getByteArray("Add2");
|
addid2 = sec.getByteArray("Add2");
|
||||||
if (addid2.length < (BLOCKS_PER_SECTION / 2)) {
|
if (addid2.length < (BLOCKS_PER_SECTION / 2)) {
|
||||||
addid2 = Arrays.copyOf(addid2, (BLOCKS_PER_SECTION / 2));
|
addid2 = Arrays.copyOf(addid2, (BLOCKS_PER_SECTION / 2));
|
||||||
|
|
@ -195,7 +195,7 @@ public class ChunkSnapshot
|
||||||
}
|
}
|
||||||
// Get meta nibble data
|
// Get meta nibble data
|
||||||
byte[] bd = null;
|
byte[] bd = null;
|
||||||
if (sec.hasKey("Data")) {
|
if (sec.contains("Data")) {
|
||||||
bd = sec.getByteArray("Data");
|
bd = sec.getByteArray("Data");
|
||||||
if (bd.length < (BLOCKS_PER_SECTION / 2)) {
|
if (bd.length < (BLOCKS_PER_SECTION / 2)) {
|
||||||
bd = Arrays.copyOf(bd, (BLOCKS_PER_SECTION / 2));
|
bd = Arrays.copyOf(bd, (BLOCKS_PER_SECTION / 2));
|
||||||
|
|
@ -230,13 +230,13 @@ public class ChunkSnapshot
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cursect.emitlight = sec.getByteArray("BlockLight");
|
cursect.emitlight = sec.getByteArray("BlockLight");
|
||||||
if (sec.hasKey("SkyLight")) {
|
if (sec.contains("SkyLight")) {
|
||||||
cursect.skylight = sec.getByteArray("SkyLight");
|
cursect.skylight = sec.getByteArray("SkyLight");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Get biome data */
|
/* Get biome data */
|
||||||
this.biome = new int[COLUMNS_PER_CHUNK];
|
this.biome = new int[COLUMNS_PER_CHUNK];
|
||||||
if (nbt.hasKey("Biomes")) {
|
if (nbt.contains("Biomes")) {
|
||||||
byte[] b = nbt.getByteArray("Biomes");
|
byte[] b = nbt.getByteArray("Biomes");
|
||||||
if (b != null) {
|
if (b != null) {
|
||||||
for (int i = 0; i < b.length; i++) {
|
for (int i = 0; i < b.length; i++) {
|
||||||
|
|
|
||||||
|
|
@ -1452,8 +1452,8 @@ public class DynmapPlugin
|
||||||
loadWorlds();
|
loadWorlds();
|
||||||
|
|
||||||
/* Initialized the currently loaded worlds */
|
/* Initialized the currently loaded worlds */
|
||||||
if(server.func_212370_w() != null) {
|
if(server.getWorlds() != null) {
|
||||||
for (WorldServer world : server.func_212370_w()) {
|
for (WorldServer world : server.getWorlds()) {
|
||||||
ForgeWorld w = this.getWorld(world);
|
ForgeWorld w = this.getWorld(world);
|
||||||
/*NOTYET - need rest of forge
|
/*NOTYET - need rest of forge
|
||||||
if(DimensionManager.getWorld(world.provider.getDimensionId()) == null) { // If not loaded
|
if(DimensionManager.getWorld(world.provider.getDimensionId()) == null) { // If not loaded
|
||||||
|
|
|
||||||
|
|
@ -1163,7 +1163,7 @@ public class ForgeMapChunkCache extends MapChunkCache
|
||||||
HashMap<String, Object> vmap = new HashMap<String, Object>();
|
HashMap<String, Object> vmap = new HashMap<String, Object>();
|
||||||
for (Object t : tc.keySet()) {
|
for (Object t : tc.keySet()) {
|
||||||
String st = (String) t;
|
String st = (String) t;
|
||||||
INBTBase tg = tc.getTag(st);
|
INBTBase tg = tc.get(st);
|
||||||
vmap.put(st, getNBTValue(tg));
|
vmap.put(st, getNBTValue(tg));
|
||||||
}
|
}
|
||||||
val = vmap;
|
val = vmap;
|
||||||
|
|
@ -1257,7 +1257,7 @@ public class ForgeMapChunkCache extends MapChunkCache
|
||||||
if(te_fields != null) {
|
if(te_fields != null) {
|
||||||
vals.clear();
|
vals.clear();
|
||||||
for(String id: te_fields) {
|
for(String id: te_fields) {
|
||||||
INBTBase v = tc.getTag(id); /* Get field */
|
INBTBase v = tc.get(id); /* Get field */
|
||||||
if(v != null) {
|
if(v != null) {
|
||||||
Object val = getNBTValue(v);
|
Object val = getNBTValue(v);
|
||||||
if(val != null) {
|
if(val != null) {
|
||||||
|
|
@ -1312,7 +1312,7 @@ public class ForgeMapChunkCache extends MapChunkCache
|
||||||
if (vis) { // If visible
|
if (vis) { // If visible
|
||||||
NBTTagCompound nbt = new NBTTagCompound();
|
NBTTagCompound nbt = new NBTTagCompound();
|
||||||
try {
|
try {
|
||||||
writechunktonbt.invoke(cps.chunkLoader, cps.provideChunk(chunk.x, chunk.z, false, false), w, nbt);
|
writechunktonbt.invoke(cps.chunkLoader, cps.getChunk(chunk.x, chunk.z, false, false), w, nbt);
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
} catch (InvocationTargetException e) {
|
} catch (InvocationTargetException e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue