mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +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();
|
WorldEdit we = WorldEdit.getInstance();
|
||||||
ForgePlayer player = adaptPlayer((ServerPlayerEntity) event.getEntityPlayer());
|
ForgePlayer player = adaptPlayer((ServerPlayerEntity) event.getPlayer());
|
||||||
ForgeWorld world = getWorld(event.getEntityPlayer().world);
|
ForgeWorld world = getWorld(event.getPlayer().world);
|
||||||
|
|
||||||
if (event instanceof PlayerInteractEvent.LeftClickEmpty) {
|
if (event instanceof PlayerInteractEvent.LeftClickEmpty) {
|
||||||
we.handleArmSwing(player); // this event cannot be canceled
|
we.handleArmSwing(player); // this event cannot be canceled
|
||||||
|
Loading…
Reference in New Issue
Block a user