[Forge] Switch off of deprecated getEntityPlayer

This commit is contained in:
Kenzie Togami 2019-08-05 14:21:18 -07:00
parent 35edd95c87
commit 8880385878
No known key found for this signature in database
GPG Key ID: 5D200B325E157A81
1 changed files with 2 additions and 2 deletions

View File

@ -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