Fix another typo

This commit is contained in:
libraryaddict 2020-08-12 18:04:21 +12:00
parent d751a15c6a
commit f67500b7be

View File

@ -1467,7 +1467,7 @@ public class ReflectionManager {
public static int getCombinedIdByBlockData(BlockData data) { public static int getCombinedIdByBlockData(BlockData data) {
try { 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); return (int) getNmsMethod("Block", "getCombinedId", getNmsClass("IBlockData")).invoke(null, iBlockData);
} }
@ -1511,7 +1511,7 @@ public class ReflectionManager {
Object iBlockData = idMethod.invoke(null, id); Object iBlockData = idMethod.invoke(null, id);
Class iBlockClass = getNmsClass("IBlockData"); Class iBlockClass = getNmsClass("IBlockData");
return (BlockData) getCraftMethod("block.data.type.CraftBlockData", "fromData", iBlockClass) return (BlockData) getCraftMethod("block.data.CraftBlockData", "fromData", iBlockClass)
.invoke(null, iBlockData); .invoke(null, iBlockData);
} }
catch (Exception ex) { catch (Exception ex) {