mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
Fix swap animations for sure this time.
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user