From d236296888292ca8cd748d6c2ba0748817e12b1f Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 25 Jul 2022 18:00:57 +1000 Subject: [PATCH] #1090: Remove no longer needed world reference from CraftMerchantCustom By: blablubbabc --- .../org/bukkit/craftbukkit/inventory/CraftMerchantCustom.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMerchantCustom.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMerchantCustom.java index 775f3087e..e859d9e22 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMerchantCustom.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMerchantCustom.java @@ -34,7 +34,6 @@ public class CraftMerchantCustom extends CraftMerchant { private final IChatBaseComponent title; private final MerchantRecipeList trades = new MerchantRecipeList(); private EntityHuman tradingPlayer; - private World tradingWorld; protected CraftMerchant craftMerchant; public MinecraftMerchant(String title) { @@ -50,9 +49,6 @@ public class CraftMerchantCustom extends CraftMerchant { @Override public void setTradingPlayer(EntityHuman entityhuman) { this.tradingPlayer = entityhuman; - if (entityhuman != null) { - this.tradingWorld = entityhuman.level; - } } @Override