mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
Added Region.shift
- Provided a default implementation using expand+contract in AbstractRegion - Overrid the implementation in the subtypes
This commit is contained in:
@ -407,10 +407,9 @@ public class SelectionCommands {
|
||||
|
||||
try {
|
||||
Region region = session.getSelection(player.getWorld());
|
||||
region.expand(dir.multiply(change));
|
||||
region.contract(dir.multiply(change));
|
||||
region.shift(dir.multiply(change));
|
||||
session.getRegionSelector(player.getWorld()).learnChanges();
|
||||
|
||||
|
||||
session.getRegionSelector(player.getWorld()).explainRegionAdjust(player, session);
|
||||
|
||||
player.print("Region shifted.");
|
||||
|
Reference in New Issue
Block a user