mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Another optimization
This commit is contained in:
parent
021bb3cbc8
commit
8e72577974
@ -85,6 +85,10 @@ public final class SlimefunManager {
|
||||
if (item == null) return sfitem == null;
|
||||
if (sfitem == null) return false;
|
||||
|
||||
if (item instanceof SlimefunItemStack && sfitem instanceof SlimefunItemStack) {
|
||||
return ((SlimefunItemStack) item).getItemID().equals(((SlimefunItemStack) sfitem).getItemID());
|
||||
}
|
||||
|
||||
if (item.getType() == sfitem.getType() && item.getAmount() >= sfitem.getAmount()) {
|
||||
if (item.hasItemMeta() && sfitem.hasItemMeta()) {
|
||||
ItemMeta itemMeta = item.getItemMeta();
|
||||
|
Loading…
Reference in New Issue
Block a user