1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Merge pull request #1844 from clementgallois/master

Resolves #1843
This commit is contained in:
TheBusyBiscuit 2020-05-02 19:13:00 +02:00 committed by GitHub
commit 4131a900e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ public class TalismanListener implements Listener {
// Did the tool in our hand broke or was it an Armorpiece?
if (!inv.getItem(inv.getHeldItemSlot()).equals(e.getBrokenItem())) {
for (int s : armorSlots) {
if (inv.getItem(s).equals(e.getBrokenItem())) {
if (e.getBrokenItem().equals(inv.getItem(s))) {
slot = s;
break;
}