mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
Fixed for latest SpoutAPI.
This commit is contained in:
parent
499f3ccda7
commit
d3162f6695
@ -75,15 +75,15 @@ public static Vector toVector(org.spout.api.math.Vector3 vector) {
|
||||
}
|
||||
|
||||
public static Point toPoint(WorldVector pt) {
|
||||
return Point.create(toWorld(pt), (float)pt.getX(), (float)pt.getY(), (float)pt.getZ());
|
||||
return new Point(toWorld(pt), (float)pt.getX(), (float)pt.getY(), (float)pt.getZ());
|
||||
}
|
||||
|
||||
public static Point toPoint(World world, Vector pt) {
|
||||
return Point.create(world, (float)pt.getX(), (float)pt.getY(), (float)pt.getZ());
|
||||
return new Point(world, (float)pt.getX(), (float)pt.getY(), (float)pt.getZ());
|
||||
}
|
||||
|
||||
public static Point center(Point loc) {
|
||||
return Point.create(
|
||||
return new Point(
|
||||
loc.getWorld(),
|
||||
loc.getX() + 0.5F,
|
||||
loc.getY() + 0.5F,
|
||||
|
Loading…
Reference in New Issue
Block a user