Refactor to simplify API usage and improve compatibility by replacing legacy methods and adapting to updated libraries.

Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2026-05-16 14:08:28 +02:00
parent 2d679028c0
commit 136b0f5b97
8 changed files with 25 additions and 24 deletions
@@ -107,7 +107,7 @@ public class Missile extends SpecialItem {
else if (yaw > 135 && yaw <= 225) aT = aT.rotateY(180);
else if (yaw > 225 && yaw <= 315) aT = aT.rotateY(90);
v = v.subtract(dimensions.getX()/2, dimensions.getY() + 2, -2).subtract(offset);
v = v.subtract(dimensions.x()/2, dimensions.y() + 2, -2).subtract(offset);
v = aT.apply(v.toVector3()).toBlockPoint();
v = v.add(location.getBlockX(), location.getBlockY(), location.getBlockZ());