Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 09:20:08 +01:00
[Forge] Switch off of deprecated getEntityPlayer
Dieser Commit ist enthalten in:
Ursprung
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
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren