New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.11.2: Item.shouldCauseReequipAnimation is confusing #3915
Comments
Ok, this is where it gets funny: |
Even another issue here: If you return true (the animation gets not played), then the animation gets not played from the first person view. If I switch to third person view (F5), then the item "shakes" again. Other players can't see it though... Seems a little bit weird (definetly bug) |
The patch is fine, I have no idea what you're doing. The code you posted returns true, which causes the requip animation. As it should... But our test mod: https://github.com/MinecraftForge/MinecraftForge/blob/1.11.x/src/test/java/net/minecraftforge/debug/ItemLayerModelDebug.java#L59 Works just fine. No re-quip animations. |
The funny part is, that I return true and it doesn't play it (if I return false, it does play). I already committed the change, but when I started this issue, the method was returning false (causing the animation) Edit: Changed the title, the other one was misleading. I looked through your code and saw, that you return false, when the itemstack gets changed to cause the animation. But the function is called "shouldCauseReequipAnimation". If you don't want the animation, then you should return false, but that isn't the case at the moment (right now you have to return true to not play the animation) . |
Again we have a test mod that clearly demonstrates that it is working as intended. Note about your project: You're missing all the gradle files so I can't even clone and test your project if I wanted to. {Without a annoying amount of work} |
#2550 is back again. In my mod "Reforged" I try to use it, but it is just ignored. Code here: https://github.com/ThexXTURBOXx/Reforged/blob/1.11.2/java/org/silvercatcher/reforged/items/weapons/ItemCrossbow.java#L77
Edit 1: I should say, that the item "shakes" when I update its NBT in the onUpdate-method (same class)
The text was updated successfully, but these errors were encountered: