mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 09:17:39 +00:00
[Forge] Switch off of deprecated getEntityPlayer
This commit is contained in:
parent
35edd95c87
commit
8880385878
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user