13
0
geforkt von Mirrors/Paper
Paper/src/main/java
t00thpick1 66471a5326 [Bleeding] Correctly enchant books. Fixes BUKKIT-5302
Books can now recieve more than one enchantment.  As such, breaking out of
the loop after only 1 enchantment is applied is not the correct behavior.

This commit also reworks some of the logic surrounding the application of
enchantments to the item. By checking if the event doesn't add any
enchantments rather than if the original enchantments list is empty, the
application code is only reached if enchantments are applied, rendering
the "applied" boolean no longer necessary. The ItemStack's Item should only
be set once, so it is now set outside of the loop based upon whether or not
"flag" is true (with "flag" being whether or not the ItemStack's Item is a
book).
2014-02-06 16:49:10 -07:00
..
jline Use jansi's Windows support for terminal colors. 2012-05-23 15:32:42 -05:00
net/minecraft/server [Bleeding] Correctly enchant books. Fixes BUKKIT-5302 2014-02-06 16:49:10 -07:00
org Update clients when ItemFrame direction is set. Fixes BUKKIT-3371 2014-02-02 00:37:59 -07:00