Fix NoSuchMethodError in merchant offer (#644)
This commit is contained in:
parent
d24234803e
commit
e392826e44
|
@ -17,18 +17,19 @@ public class MerchantOfferMixin implements MerchantOfferBridge {
|
||||||
@Shadow public ItemStack baseCostA;
|
@Shadow public ItemStack baseCostA;
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
|
|
||||||
|
@Shadow private int demand;
|
||||||
private CraftMerchantRecipe bukkitHandle;
|
private CraftMerchantRecipe bukkitHandle;
|
||||||
|
|
||||||
public CraftMerchantRecipe asBukkit() {
|
public CraftMerchantRecipe asBukkit() {
|
||||||
return (bukkitHandle == null) ? bukkitHandle = new CraftMerchantRecipe((MerchantOffer) (Object) this) : bukkitHandle;
|
return (bukkitHandle == null) ? bukkitHandle = new CraftMerchantRecipe((MerchantOffer) (Object) this) : bukkitHandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void arclight$constructor(ItemStack buyingStackFirstIn, ItemStack buyingStackSecondIn, ItemStack sellingStackIn, int usesIn, int maxUsesIn, int givenEXPIn, float priceMultiplierIn) {
|
public void arclight$constructor(ItemStack buyingStackFirstIn, ItemStack buyingStackSecondIn, ItemStack sellingStackIn, int usesIn, int maxUsesIn, int givenEXPIn, float priceMultiplierIn, int demand) {
|
||||||
throw new RuntimeException();
|
throw new RuntimeException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void arclight$constructor(ItemStack buyingStackFirstIn, ItemStack buyingStackSecondIn, ItemStack sellingStackIn, int usesIn, int maxUsesIn, int givenEXPIn, float priceMultiplierIn, CraftMerchantRecipe bukkit) {
|
public void arclight$constructor(ItemStack buyingStackFirstIn, ItemStack buyingStackSecondIn, ItemStack sellingStackIn, int usesIn, int maxUsesIn, int givenEXPIn, float priceMultiplierIn, int demand, CraftMerchantRecipe bukkit) {
|
||||||
arclight$constructor(buyingStackFirstIn, buyingStackSecondIn, sellingStackIn, usesIn, maxUsesIn, givenEXPIn, priceMultiplierIn);
|
arclight$constructor(buyingStackFirstIn, buyingStackSecondIn, sellingStackIn, usesIn, maxUsesIn, givenEXPIn, priceMultiplierIn, demand);
|
||||||
this.bukkitHandle = bukkit;
|
this.bukkitHandle = bukkit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user