-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
2 faults in ItemUtil.java (CraftBook) #867
Comments
Comment by AnorZaken Also very very small (debug only) fault at: |
Comment by me4502 I'll look into fixing that bug when I get a chance, but I'm not sure if that is the underlying cause of the recipe issues. That code was rewritten a few weeks ago to make it simpler, this bug probably wasn't in there at that stage. |
Comment by AnorZaken No the bug isn't directly related to the discussion in the thread. It's just something I happened to stumbled upon.
It's purely bukkit-api, no craftbukkit or hacks (I haven't tested it yet though...) EDIT:
(...but I still haven't tested it xD) Sorry for this not being overly enjoyable to read in plain-text. |
Comment by me4502 CraftBook is adding recipes to bukkit, it uses the prepare events to handle metadata, bukkits recipe system only handled ID and data values. |
Comment by AnorZaken Here it is, "presumably" completed (as in not tested yet). I'm doing this for purely selfish reasons:
|
Comment by me4502 Thanks, I'll hopefully be able to look into this by the end of the week. |
CRAFTBOOK-3007 - Reported by AnorZaken
Was looking at the source and spotted 2 faults in
file: ItemUtil.java
method: public static boolean areItemsIdentical(ItemStack item, ItemStack item2)
faulty code begins at:
https://github.com/sk89q/craftbook/blob/a534703d6967ad5430e6cc114002b53364f826e2/src/main/java/com/sk89q/craftbook/util/ItemUtil.java#L323
Fault/error/scenario info can be found here:
http://forum.sk89q.com/threads/custom-recipes-wont-overwrite-vanilla-recipes.15374/#post-27308
(sorry, I posted there first)
Also included code that I believe will fix the two faults. (in the forum post)
(Not pull-ready, it's "similar" code from my own work related to craftbook - read the forum thread for more info.)
The text was updated successfully, but these errors were encountered: