-New function to create IPos objects from a long
IPos:
-fromLong() now mutates the calling IPos object
This commit is contained in:
Luis C.M committed 2023-06-03 14:32:43 -05:00
1 parent 29fb8d1dcf
commit 3a6255d98f
2 files changed
+6 -1

No files matched your search

@@ -120,7 +120,8 @@ public class ScriptBlockPos implements IPos {
}
public IPos fromLong(long serialized) {
return NpcAPI.Instance().getIPos(BlockPos.fromLong(serialized));
this.blockPos = BlockPos.fromLong(serialized);
return this;
}
public IPos normalize() {