Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-27 03:12:37 +01:00
Remove self-refraction-check
Dieser Commit ist enthalten in:
Ursprung
362e946fdb
Commit
2eb6b5a123
@ -138,14 +138,7 @@ public final class PaperweightPlatformAdapter extends NMSAdapter {
|
|||||||
fieldTickingFluidCount.setAccessible(true);
|
fieldTickingFluidCount.setAccessible(true);
|
||||||
fieldTickingBlockCount = LevelChunkSection.class.getDeclaredField(Refraction.pickName("tickingBlockCount", "g"));
|
fieldTickingBlockCount = LevelChunkSection.class.getDeclaredField(Refraction.pickName("tickingBlockCount", "g"));
|
||||||
fieldTickingBlockCount.setAccessible(true);
|
fieldTickingBlockCount.setAccessible(true);
|
||||||
Field tmpFieldBiomes;
|
fieldBiomes = LevelChunkSection.class.getDeclaredField(Refraction.pickName("biomes", "j"));
|
||||||
try {
|
|
||||||
// It seems to actually be biomes, but is apparently obfuscated to "j"
|
|
||||||
tmpFieldBiomes = LevelChunkSection.class.getDeclaredField("biomes");
|
|
||||||
} catch (NoSuchFieldException ignored) {
|
|
||||||
tmpFieldBiomes = LevelChunkSection.class.getDeclaredField("j");
|
|
||||||
}
|
|
||||||
fieldBiomes = tmpFieldBiomes;
|
|
||||||
fieldBiomes.setAccessible(true);
|
fieldBiomes.setAccessible(true);
|
||||||
|
|
||||||
Method getVisibleChunkIfPresent = ChunkMap.class.getDeclaredMethod(Refraction.pickName(
|
Method getVisibleChunkIfPresent = ChunkMap.class.getDeclaredMethod(Refraction.pickName(
|
||||||
|
@ -147,14 +147,7 @@ public final class PaperweightPlatformAdapter extends NMSAdapter {
|
|||||||
fieldTickingFluidCount.setAccessible(true);
|
fieldTickingFluidCount.setAccessible(true);
|
||||||
fieldTickingBlockCount = LevelChunkSection.class.getDeclaredField(Refraction.pickName("tickingBlockCount", "f"));
|
fieldTickingBlockCount = LevelChunkSection.class.getDeclaredField(Refraction.pickName("tickingBlockCount", "f"));
|
||||||
fieldTickingBlockCount.setAccessible(true);
|
fieldTickingBlockCount.setAccessible(true);
|
||||||
Field tmpFieldBiomes;
|
fieldBiomes = LevelChunkSection.class.getDeclaredField(Refraction.pickName("biomes", "i"));
|
||||||
try {
|
|
||||||
// It seems to actually be biomes, but is apparently obfuscated to "i"
|
|
||||||
tmpFieldBiomes = LevelChunkSection.class.getDeclaredField("biomes");
|
|
||||||
} catch (NoSuchFieldException ignored) {
|
|
||||||
tmpFieldBiomes = LevelChunkSection.class.getDeclaredField("i");
|
|
||||||
}
|
|
||||||
fieldBiomes = tmpFieldBiomes;
|
|
||||||
fieldBiomes.setAccessible(true);
|
fieldBiomes.setAccessible(true);
|
||||||
|
|
||||||
Method getVisibleChunkIfPresent = ChunkMap.class.getDeclaredMethod(Refraction.pickName(
|
Method getVisibleChunkIfPresent = ChunkMap.class.getDeclaredMethod(Refraction.pickName(
|
||||||
|
@ -141,14 +141,7 @@ public final class PaperweightPlatformAdapter extends NMSAdapter {
|
|||||||
fieldTickingFluidCount.setAccessible(true);
|
fieldTickingFluidCount.setAccessible(true);
|
||||||
fieldTickingBlockCount = LevelChunkSection.class.getDeclaredField(Refraction.pickName("tickingBlockCount", "f"));
|
fieldTickingBlockCount = LevelChunkSection.class.getDeclaredField(Refraction.pickName("tickingBlockCount", "f"));
|
||||||
fieldTickingBlockCount.setAccessible(true);
|
fieldTickingBlockCount.setAccessible(true);
|
||||||
Field tmpFieldBiomes;
|
fieldBiomes = LevelChunkSection.class.getDeclaredField(Refraction.pickName("biomes", "i"));
|
||||||
try {
|
|
||||||
// It seems to actually be biomes, but is apparently obfuscated to "i"
|
|
||||||
tmpFieldBiomes = LevelChunkSection.class.getDeclaredField("biomes");
|
|
||||||
} catch (NoSuchFieldException ignored) {
|
|
||||||
tmpFieldBiomes = LevelChunkSection.class.getDeclaredField("i");
|
|
||||||
}
|
|
||||||
fieldBiomes = tmpFieldBiomes;
|
|
||||||
fieldBiomes.setAccessible(true);
|
fieldBiomes.setAccessible(true);
|
||||||
|
|
||||||
Method getVisibleChunkIfPresent = ChunkMap.class.getDeclaredMethod(Refraction.pickName(
|
Method getVisibleChunkIfPresent = ChunkMap.class.getDeclaredMethod(Refraction.pickName(
|
||||||
|
@ -141,14 +141,7 @@ public final class PaperweightPlatformAdapter extends NMSAdapter {
|
|||||||
fieldTickingFluidCount.setAccessible(true);
|
fieldTickingFluidCount.setAccessible(true);
|
||||||
fieldTickingBlockCount = LevelChunkSection.class.getDeclaredField(Refraction.pickName("tickingBlockCount", "f"));
|
fieldTickingBlockCount = LevelChunkSection.class.getDeclaredField(Refraction.pickName("tickingBlockCount", "f"));
|
||||||
fieldTickingBlockCount.setAccessible(true);
|
fieldTickingBlockCount.setAccessible(true);
|
||||||
Field tmpFieldBiomes;
|
fieldBiomes = LevelChunkSection.class.getDeclaredField(Refraction.pickName("biomes", "i"));
|
||||||
try {
|
|
||||||
// It seems to actually be biomes, but is apparently obfuscated to "i"
|
|
||||||
tmpFieldBiomes = LevelChunkSection.class.getDeclaredField("biomes");
|
|
||||||
} catch (NoSuchFieldException ignored) {
|
|
||||||
tmpFieldBiomes = LevelChunkSection.class.getDeclaredField("i");
|
|
||||||
}
|
|
||||||
fieldBiomes = tmpFieldBiomes;
|
|
||||||
fieldBiomes.setAccessible(true);
|
fieldBiomes.setAccessible(true);
|
||||||
|
|
||||||
Method getVisibleChunkIfPresent = ChunkMap.class.getDeclaredMethod(Refraction.pickName(
|
Method getVisibleChunkIfPresent = ChunkMap.class.getDeclaredMethod(Refraction.pickName(
|
||||||
|
@ -139,14 +139,7 @@ public final class PaperweightPlatformAdapter extends NMSAdapter {
|
|||||||
fieldTickingFluidCount.setAccessible(true);
|
fieldTickingFluidCount.setAccessible(true);
|
||||||
fieldTickingBlockCount = LevelChunkSection.class.getDeclaredField(Refraction.pickName("tickingBlockCount", "f"));
|
fieldTickingBlockCount = LevelChunkSection.class.getDeclaredField(Refraction.pickName("tickingBlockCount", "f"));
|
||||||
fieldTickingBlockCount.setAccessible(true);
|
fieldTickingBlockCount.setAccessible(true);
|
||||||
Field tmpFieldBiomes;
|
fieldBiomes = LevelChunkSection.class.getDeclaredField(Refraction.pickName("biomes", "i"));
|
||||||
try {
|
|
||||||
// It seems to actually be biomes, but is apparently obfuscated to "i"
|
|
||||||
tmpFieldBiomes = LevelChunkSection.class.getDeclaredField("biomes");
|
|
||||||
} catch (NoSuchFieldException ignored) {
|
|
||||||
tmpFieldBiomes = LevelChunkSection.class.getDeclaredField("i");
|
|
||||||
}
|
|
||||||
fieldBiomes = tmpFieldBiomes;
|
|
||||||
fieldBiomes.setAccessible(true);
|
fieldBiomes.setAccessible(true);
|
||||||
|
|
||||||
Method getVisibleChunkIfPresent = ChunkMap.class.getDeclaredMethod(Refraction.pickName(
|
Method getVisibleChunkIfPresent = ChunkMap.class.getDeclaredMethod(Refraction.pickName(
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren