mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 12:35:15 +01:00
1.9.4 compatibility.
This commit is contained in:
parent
1db3d1aa72
commit
d5cf81be5c
@ -51,7 +51,7 @@ public class SendChunk {
|
|||||||
this.methodInitLighting = classChunk.getMethod("initLighting");
|
this.methodInitLighting = classChunk.getMethod("initLighting");
|
||||||
RefClass classMapChunk = getRefClass("{nms}.PacketPlayOutMapChunk");
|
RefClass classMapChunk = getRefClass("{nms}.PacketPlayOutMapChunk");
|
||||||
if (PS.get().checkVersion(PS.get().IMP.getServerVersion(), 1, 9, 4)) {
|
if (PS.get().checkVersion(PS.get().IMP.getServerVersion(), 1, 9, 4)) {
|
||||||
this.mapChunk = null; //todo
|
this.mapChunk = classMapChunk.getConstructor(classChunk.getRealClass(),int.class);
|
||||||
} else {
|
} else {
|
||||||
this.mapChunk = classMapChunk.getConstructor(classChunk.getRealClass(), boolean.class, int.class);
|
this.mapChunk = classMapChunk.getConstructor(classChunk.getRealClass(), boolean.class, int.class);
|
||||||
}
|
}
|
||||||
@ -111,7 +111,7 @@ public class SendChunk {
|
|||||||
Object con = this.connection.of(entity).get();
|
Object con = this.connection.of(entity).get();
|
||||||
Object packet;
|
Object packet;
|
||||||
if (PS.get().checkVersion(PS.get().IMP.getServerVersion(), 1, 9, 4)) {
|
if (PS.get().checkVersion(PS.get().IMP.getServerVersion(), 1, 9, 4)) {
|
||||||
packet = null; //todo
|
packet = this.mapChunk.create(c,65535);
|
||||||
} else {
|
} else {
|
||||||
packet = this.mapChunk.create(c, true, 65535);
|
packet = this.mapChunk.create(c, true, 65535);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user