mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-03 11:31:21 +01:00
prevents crafting if the current item can't be stacked any further
(not tested)
This commit is contained in:
parent
8b8dd9282a
commit
6ff3acdd75
@ -55,7 +55,7 @@ public class CraftingListener implements Listener {
|
||||
}
|
||||
CachedRecipe cached = cachedRecipe.get(e.getWhoClicked().getUniqueId());
|
||||
cachedRecipe.remove(e.getWhoClicked().getUniqueId());
|
||||
if (!cached.isValid(inv.getMatrix())) {
|
||||
if (!cached.isValid(inv.getMatrix()) || !e.getCurrentItem().isSimilar(cached.getResult())) {
|
||||
e.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user