mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 20:58:40 +01:00
Add 1.12 support
This commit is contained in:
parent
fc717ae720
commit
1b8f441712
@ -81,8 +81,14 @@ public class BukkitVersionHelperCB extends BukkitVersionHelperGeneric {
|
|||||||
if (biomebaselist == null) {
|
if (biomebaselist == null) {
|
||||||
getbiomebyid = getMethod(biomebase, new String[] { "a" }, new Class[] { int.class} );
|
getbiomebyid = getMethod(biomebase, new String[] { "a" }, new Class[] { int.class} );
|
||||||
}
|
}
|
||||||
|
biomebasetemp = getPrivateFieldNoFail(biomebase, new String[] { "B" }, float.class);
|
||||||
|
if (biomebasetemp != null) {
|
||||||
|
biomebasehumi = getPrivateField(biomebase, new String[] { "C" }, float.class);
|
||||||
|
}
|
||||||
|
else {
|
||||||
biomebasetemp = getPrivateField(biomebase, new String[] { "temperature", "F", "C" }, float.class);
|
biomebasetemp = getPrivateField(biomebase, new String[] { "temperature", "F", "C" }, float.class);
|
||||||
biomebasehumi = getPrivateField(biomebase, new String[] { "humidity", "G", "D" }, float.class);
|
biomebasehumi = getPrivateField(biomebase, new String[] { "humidity", "G", "D" }, float.class);
|
||||||
|
}
|
||||||
biomebaseidstring = getPrivateField(biomebase, new String[] { "y", "af", "ah", "z" }, String.class);
|
biomebaseidstring = getPrivateField(biomebase, new String[] { "y", "af", "ah", "z" }, String.class);
|
||||||
biomebaseid = getFieldNoFail(biomebase, new String[] { "id" }, int.class);
|
biomebaseid = getFieldNoFail(biomebase, new String[] { "id" }, int.class);
|
||||||
if (biomebaseid == null) {
|
if (biomebaseid == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user