From 2d5ab1f7b559c5a1fd59d38c7f43ddc83a94a4a0 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 27 Dec 2016 09:01:22 +1100 Subject: [PATCH] SPIGOT-2963: Endless loop in CraftHumanEntity#openMerchant By: md_5 --- .../java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index 75d8246912..581a4394d9 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -360,7 +360,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { public InventoryView openMerchant(Villager villager, boolean force) { Preconditions.checkNotNull(villager, "villager cannot be null"); - return this.openMerchant(villager, force); + return this.openMerchant((Merchant) villager, force); } @Override