Skip to content

Commit

Permalink
Merge branch 'master' into recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Dream-Master authored Feb 27, 2024
2 parents b1473f1 + 49bad23 commit 84a2453
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ private void CheckInventoryForItems(EntityPlayer pPlayer) {
Class<?> c = pPlayer.inventory.getClass();
Field extraInv = null;
try {
extraInv = c.getDeclaredField("extraItems");
extraInv = c.getDeclaredField("battlegear2$extraItems");
} catch (NoSuchFieldException nsfe) {
_mLogger.warn(
"battlegear.changed.1",
Expand All @@ -414,6 +414,7 @@ private void CheckInventoryForItems(EntityPlayer pPlayer) {
if (extraInv == null) return;

try {
extraInv.setAccessible(true);
ItemStack[] tExtraInv = (ItemStack[]) extraInv.get(pPlayer.inventory);
checkInventoryArray(tExtraInv, pPlayer);
} catch (Exception ex) {
Expand Down

0 comments on commit 84a2453

Please sign in to comment.