mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
Finish removal of PlayerDirection, and partially added diagonal support back to commands.
This commit is contained in:
@ -35,4 +35,5 @@ public @interface Direction {
|
||||
|
||||
String AIM = "me";
|
||||
|
||||
boolean includeDiagonals() default false;
|
||||
}
|
||||
|
@ -264,7 +264,11 @@ public class WorldEditBinding extends BindingHelper {
|
||||
public BlockVector3 getDirection(ArgumentStack context, Direction direction)
|
||||
throws ParameterException, UnknownDirectionException {
|
||||
Player sender = getPlayer(context);
|
||||
return worldEdit.getDirection(sender, context.next());
|
||||
if (direction.includeDiagonals()) {
|
||||
return worldEdit.getDiagonalDirection(sender, context.next());
|
||||
} else {
|
||||
return worldEdit.getDirection(sender, context.next());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user