mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
Fix CraftInventoryMerchant#getSelectedRecipe if there is no active merchant recipe.
By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
parent
961fc0efe5
commit
4d93e94dbd
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ public class CraftInventoryMerchant extends CraftInventory implements MerchantIn
|
|||
|
||||
@Override
|
||||
public MerchantRecipe getSelectedRecipe() {
|
||||
return getInventory().getRecipe().asBukkit();
|
||||
net.minecraft.server.MerchantRecipe nmsRecipe = getInventory().getRecipe();
|
||||
return (nmsRecipe == null) ? null : nmsRecipe.asBukkit();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue