Skip to content
Permalink
Browse files

[Forge] Switch off of deprecated getEntityPlayer

  • Loading branch information...
kenzierocks committed Aug 5, 2019
1 parent 35edd95 commit 88803858783802054065e0731a53a2481017fcff
Showing with 2 additions and 2 deletions.
  1. +2 −2 worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorldEdit.java
@@ -232,8 +232,8 @@ public void onPlayerInteract(PlayerInteractEvent event) {
}

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

0 comments on commit 8880385

Please sign in to comment.
You can’t perform that action at this time.