Fix swap animations for sure this time.

This commit is contained in:
LexManos committed 2016-03-21 20:43:22 -07:00
1 parent 3ce53a7ee0
commit a4d5760539
2 files changed
+5 -6

No files matched your search

@@ -629,10 +629,9 @@ public class ForgeHooksClient
// FIXME
public static boolean shouldCauseReequipAnimation(ItemStack from, ItemStack to, int slot)
{
if(!Objects.equal(from, to) || from == null)
{
return Objects.equal(from, to);
}
if (from == null && to != null) return true;
if (from == null && to == null) return false;
if (from != null && to == null) return true;
boolean changed = false;
if (slot != -1)
{