mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
Fix CraftInventoryMerchant#getSelectedRecipe if there is no active merchant recipe.
This commit is contained in:
parent
c24abab787
commit
14cd1688da
@ -17,7 +17,8 @@ public class CraftInventoryMerchant extends CraftInventory implements MerchantIn
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MerchantRecipe getSelectedRecipe() {
|
public MerchantRecipe getSelectedRecipe() {
|
||||||
return getInventory().getRecipe().asBukkit();
|
net.minecraft.server.MerchantRecipe nmsRecipe = getInventory().getRecipe();
|
||||||
|
return (nmsRecipe == null) ? null : nmsRecipe.asBukkit();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user