Fix another typo
This commit is contained in:
parent
d751a15c6a
commit
f67500b7be
@ -1467,7 +1467,7 @@ public class ReflectionManager {
|
||||
|
||||
public static int getCombinedIdByBlockData(BlockData data) {
|
||||
try {
|
||||
Object iBlockData = getCraftMethod("block.data.type.CraftBlockData", "getState").invoke(data);
|
||||
Object iBlockData = getCraftMethod("block.data.CraftBlockData", "getState").invoke(data);
|
||||
|
||||
return (int) getNmsMethod("Block", "getCombinedId", getNmsClass("IBlockData")).invoke(null, iBlockData);
|
||||
}
|
||||
@ -1511,7 +1511,7 @@ public class ReflectionManager {
|
||||
Object iBlockData = idMethod.invoke(null, id);
|
||||
Class iBlockClass = getNmsClass("IBlockData");
|
||||
|
||||
return (BlockData) getCraftMethod("block.data.type.CraftBlockData", "fromData", iBlockClass)
|
||||
return (BlockData) getCraftMethod("block.data.CraftBlockData", "fromData", iBlockClass)
|
||||
.invoke(null, iBlockData);
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user