mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-14 22:55:56 +01:00
*Fix warp for arrows as well
This commit is contained in:
parent
e1ab82d07b
commit
68bda0d775
@ -4,7 +4,6 @@ import com.boydti.fawe.object.RunnableVal;
|
|||||||
import com.boydti.fawe.util.TaskManager;
|
import com.boydti.fawe.util.TaskManager;
|
||||||
import com.thevoxelbox.voxelsniper.Message;
|
import com.thevoxelbox.voxelsniper.Message;
|
||||||
import com.thevoxelbox.voxelsniper.SnipeData;
|
import com.thevoxelbox.voxelsniper.SnipeData;
|
||||||
import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush;
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -36,8 +35,13 @@ public class WarpBrush extends Brush
|
|||||||
Location playerLocation = player.getLocation();
|
Location playerLocation = player.getLocation();
|
||||||
location.setPitch(playerLocation.getPitch());
|
location.setPitch(playerLocation.getPitch());
|
||||||
location.setYaw(playerLocation.getYaw());
|
location.setYaw(playerLocation.getYaw());
|
||||||
|
location.setWorld(Bukkit.getWorld(location.getWorld().getName()));
|
||||||
player.teleport(location);
|
TaskManager.IMP.sync(new RunnableVal<Object>() {
|
||||||
|
@Override
|
||||||
|
public void run(Object value) {
|
||||||
|
player.teleport(location);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user