mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-15 07:05:53 +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,9 +35,14 @@ 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()));
|
||||||
|
TaskManager.IMP.sync(new RunnableVal<Object>() {
|
||||||
|
@Override
|
||||||
|
public void run(Object value) {
|
||||||
player.teleport(location);
|
player.teleport(location);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected final void powder(final SnipeData v)
|
protected final void powder(final SnipeData v)
|
||||||
|
Loading…
Reference in New Issue
Block a user