Possible invis block fix
This commit is contained in:
parent
9cf4f6c9f0
commit
8c7b431e10
@ -58,6 +58,7 @@ public class BukkitQueue_1_8 extends BukkitQueue_0 {
|
|||||||
private final RefClass classBlockPosition = getRefClass("{nms}.BlockPosition");
|
private final RefClass classBlockPosition = getRefClass("{nms}.BlockPosition");
|
||||||
private final RefClass classChunkSection = getRefClass("{nms}.ChunkSection");
|
private final RefClass classChunkSection = getRefClass("{nms}.ChunkSection");
|
||||||
|
|
||||||
|
private RefMethod methodRecalcBlockCounts;
|
||||||
private RefMethod methodGetHandlePlayer;
|
private RefMethod methodGetHandlePlayer;
|
||||||
private RefMethod methodGetHandleChunk;
|
private RefMethod methodGetHandleChunk;
|
||||||
private RefConstructor MapChunk;
|
private RefConstructor MapChunk;
|
||||||
@ -92,6 +93,7 @@ public class BukkitQueue_1_8 extends BukkitQueue_0 {
|
|||||||
this.classChunkSectionConstructor = this.classChunkSection.getConstructor(int.class, boolean.class, char[].class);
|
this.classChunkSectionConstructor = this.classChunkSection.getConstructor(int.class, boolean.class, char[].class);
|
||||||
this.tileEntityListTick = this.classWorld.getField("tileEntityList");
|
this.tileEntityListTick = this.classWorld.getField("tileEntityList");
|
||||||
this.methodGetWorld = this.classChunk.getMethod("getWorld");
|
this.methodGetWorld = this.classChunk.getMethod("getWorld");
|
||||||
|
this.methodRecalcBlockCounts = this.classChunkSection.getMethod("recalcBlockCounts");
|
||||||
} catch (final NoSuchMethodException e) {
|
} catch (final NoSuchMethodException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -277,6 +279,7 @@ public class BukkitQueue_1_8 extends BukkitQueue_0 {
|
|||||||
relight.call(pos);
|
relight.call(pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
methodRecalcBlockCounts.of(section).call();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} catch (final Throwable e) {
|
} catch (final Throwable e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user