mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 18:29:05 +00:00
Fix ScriptBlockPos add using target position
This commit is contained in:
1 parent
faf1019ed1
commit
b5a69b0f2a
1 file changed
+1
-1
@@ -89,7 +89,7 @@ public class ScriptBlockPos implements IPos {
|
||||
}
|
||||
|
||||
public IPos add(IPos pos) {
|
||||
return NpcAPI.Instance().getIPos(this.blockPos.add(this.blockPos));
|
||||
return NpcAPI.Instance().getIPos(this.blockPos.add(pos.getXD(), pos.getYD(), pos.getZD()));
|
||||
}
|
||||
|
||||
public IPos subtract(double x, double y, double z) {
|
||||
|
||||
Reference in new issue
Block a user