mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-24 03:25:29 +01:00
Chunk position no longer exists, don't sweat if we can't find it
Fixes #64
This commit is contained in:
parent
37123c0aa1
commit
16c85ac8b4
@ -1177,7 +1177,7 @@ public class MinecraftReflection {
|
|||||||
try {
|
try {
|
||||||
return getMinecraftClass("ChunkPosition");
|
return getMinecraftClass("ChunkPosition");
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
Class<?> normalChunkGenerator = getCraftBukkitClass("generator.NormalChunkGenerator");
|
/* Class<?> normalChunkGenerator = getCraftBukkitClass("generator.NormalChunkGenerator");
|
||||||
|
|
||||||
// ChunkPosition a(net.minecraft.server.World world, String string, int i, int i1, int i2) {
|
// ChunkPosition a(net.minecraft.server.World world, String string, int i, int i1, int i2) {
|
||||||
FuzzyMethodContract selected = FuzzyMethodContract.newBuilder()
|
FuzzyMethodContract selected = FuzzyMethodContract.newBuilder()
|
||||||
@ -1189,8 +1189,8 @@ public class MinecraftReflection {
|
|||||||
.parameterExactType(int.class, 4)
|
.parameterExactType(int.class, 4)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
return setMinecraftClass("ChunkPosition",
|
return setMinecraftClass("ChunkPosition", FuzzyReflection.fromClass(normalChunkGenerator).getMethod(selected).getReturnType()); */
|
||||||
FuzzyReflection.fromClass(normalChunkGenerator).getMethod(selected).getReturnType());
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user