3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 18:40:05 +01:00

Fixed for latest SpoutAPI.

Dieser Commit ist enthalten in:
TomyLobo 2012-03-17 10:00:13 +01:00
Ursprung 499f3ccda7
Commit d3162f6695

Datei anzeigen

@ -75,15 +75,15 @@ public class SpoutUtil {
} }
public static Point toPoint(WorldVector pt) { 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) { 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) { public static Point center(Point loc) {
return Point.create( return new Point(
loc.getWorld(), loc.getWorld(),
loc.getX() + 0.5F, loc.getX() + 0.5F,
loc.getY() + 0.5F, loc.getY() + 0.5F,