mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-28 13:36:00 +00:00
Merge pull request #224 from KAMKEEL/codex/fix-npc-position-output-bug
Fix ScriptBlockPos.add to use provided position offsets
This commit is contained in:
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