mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-28 02:32:03 -07:00
Fix custom merchant trade event world reference
This commit is contained in:
@@ -235,7 +235,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ merchantRecipe.increaseUses();
|
+ merchantRecipe.increaseUses();
|
||||||
+ }
|
+ }
|
||||||
+ if (event == null || event.isRewardingExp()) {
|
+ if (event == null || event.isRewardingExp()) {
|
||||||
+ this.tradingWorld.addFreshEntity(new net.minecraft.world.entity.ExperienceOrb(tradingWorld, tradingPlayer.getX(), tradingPlayer.getY(), tradingPlayer.getZ(), merchantRecipe.getXp(), org.bukkit.entity.ExperienceOrb.SpawnReason.VILLAGER_TRADE, this.tradingPlayer, null));
|
+ this.tradingPlayer.level.addFreshEntity(new net.minecraft.world.entity.ExperienceOrb(tradingPlayer.level, tradingPlayer.getX(), tradingPlayer.getY(), tradingPlayer.getZ(), merchantRecipe.getXp(), org.bukkit.entity.ExperienceOrb.SpawnReason.VILLAGER_TRADE, this.tradingPlayer, null));
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ this.notifyTrade(merchantRecipe);
|
+ this.notifyTrade(merchantRecipe);
|
||||||
|
Reference in New Issue
Block a user