mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-09-06 07:48:20 +00:00
Fixed for latest SpoutAPI.
This commit is contained in:
parent
4ad330a958
commit
fcd792191a
@ -75,15 +75,15 @@ public class SpoutUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Point toPoint(WorldVector pt) {
|
public static Point toPoint(WorldVector pt) {
|
||||||
return new Point(toWorld(pt), (float)pt.getX(), (float)pt.getY(), (float)pt.getZ());
|
return Point.create(toWorld(pt), (float)pt.getX(), (float)pt.getY(), (float)pt.getZ());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Point toPoint(World world, Vector pt) {
|
public static Point toPoint(World world, Vector pt) {
|
||||||
return new Point(world, (float)pt.getX(), (float)pt.getY(), (float)pt.getZ());
|
return Point.create(world, (float)pt.getX(), (float)pt.getY(), (float)pt.getZ());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Point center(Point loc) {
|
public static Point center(Point loc) {
|
||||||
return new Point(
|
return Point.create(
|
||||||
loc.getWorld(),
|
loc.getWorld(),
|
||||||
loc.getX() + 0.5F,
|
loc.getX() + 0.5F,
|
||||||
loc.getY() + 0.5F,
|
loc.getY() + 0.5F,
|
||||||
|
Loading…
Reference in New Issue
Block a user