mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Update Talisman.java
This commit is contained in:
parent
e953eb1c81
commit
3471932050
@ -182,19 +182,27 @@ public class Talisman extends SlimefunItem {
|
|||||||
|
|
||||||
ItemStack possibleTalisman = retrieveTalismanFromInventory(p.getInventory(), talisman.getItem());
|
ItemStack possibleTalisman = retrieveTalismanFromInventory(p.getInventory(), talisman.getItem());
|
||||||
|
|
||||||
if (possibleTalisman != null && Slimefun.hasUnlocked(p, talisman, true)) {
|
if (possibleTalisman != null) {
|
||||||
activateTalisman(e, p, p.getInventory(), talisman, possibleTalisman);
|
if (Slimefun.hasUnlocked(p, talisman, true)) {
|
||||||
return possibleTalisman;
|
activateTalisman(e, p, p.getInventory(), talisman, possibleTalisman);
|
||||||
|
return possibleTalisman;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
possibleTalisman = retrieveTalismanFromInventory(p.getEnderChest(), talisman.getEnderVariant());
|
possibleTalisman = retrieveTalismanFromInventory(p.getEnderChest(), talisman.getEnderVariant());
|
||||||
|
|
||||||
if (possibleTalisman != null && Slimefun.hasUnlocked(p, talisman, true)) {
|
if (possibleTalisman != null) {
|
||||||
activateTalisman(e, p, p.getEnderChest(), talisman, possibleTalisman);
|
if (Slimefun.hasUnlocked(p, talisman, true)) {
|
||||||
return possibleTalisman;
|
activateTalisman(e, p, p.getEnderChest(), talisman, possibleTalisman);
|
||||||
|
return possibleTalisman;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return possibleTalisman;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
Loading…
Reference in New Issue
Block a user