From 88803858783802054065e0731a53a2481017fcff Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Mon, 5 Aug 2019 14:21:18 -0700 Subject: [PATCH] [Forge] Switch off of deprecated getEntityPlayer --- .../main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java index a3ad1c9a0..c3f4a8ece 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java @@ -232,8 +232,8 @@ public class ForgeWorldEdit { } WorldEdit we = WorldEdit.getInstance(); - ForgePlayer player = adaptPlayer((ServerPlayerEntity) event.getEntityPlayer()); - ForgeWorld world = getWorld(event.getEntityPlayer().world); + ForgePlayer player = adaptPlayer((ServerPlayerEntity) event.getPlayer()); + ForgeWorld world = getWorld(event.getPlayer().world); if (event instanceof PlayerInteractEvent.LeftClickEmpty) { we.handleArmSwing(player); // this event cannot be canceled