From 22f6ae858b0e1aed9db37c4d9f6c49ab906f7dfc Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Sun, 19 May 2013 16:13:19 -0400 Subject: [PATCH] Update inventories after chimera wing --- src/main/java/com/gmail/nossr50/util/ChimaeraWing.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/util/ChimaeraWing.java b/src/main/java/com/gmail/nossr50/util/ChimaeraWing.java index bfda14034..fd486aaa0 100644 --- a/src/main/java/com/gmail/nossr50/util/ChimaeraWing.java +++ b/src/main/java/com/gmail/nossr50/util/ChimaeraWing.java @@ -78,6 +78,7 @@ public final class ChimaeraWing { if (location.getY() < player.getWorld().getHighestBlockYAt(location)) { player.setItemInHand(new ItemStack(getChimaeraWing(amount - Config.getInstance().getChimaeraUseCost()))); player.sendMessage(LocaleLoader.getString("Item.ChimaeraWing.Fail")); + player.updateInventory(); player.setVelocity(new Vector(0, 0.5D, 0)); CombatUtils.dealDamage(player, Misc.getRandom().nextInt(player.getHealth() - 10)); mcMMOPlayer.actualizeLastTeleport(); @@ -115,6 +116,7 @@ public final class ChimaeraWing { } player.setItemInHand(new ItemStack(getChimaeraWing(player.getItemInHand().getAmount() - Config.getInstance().getChimaeraUseCost()))); + player.updateInventory(); UserManager.getPlayer(player).actualizeLastTeleport(); if (Config.getInstance().getStatsTrackingEnabled()) { MetricsManager.chimeraWingUsed();