Skip to content

Commit b225e1a

Browse files
committed
fix: fixed ObjectValue Value property still returning an RBXInstance even when the object address is null (resolves #11)
1 parent 2a07128 commit b225e1a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "robloxmemoryapi"
7-
version = "0.1.9.1"
7+
version = "0.1.9.2"
88
description = "Python Library that abstracts reading and writing data from the Roblox DataModel"
99
readme = { file = "README.md", content-type = "text/markdown" }
1010
requires-python = ">=3.9"

‎src/robloxmemoryapi/utils/rbx/instance.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,9 @@ def Value(self):
725725
misc_offsets["Value"]
726726
)
727727

728+
if object_address == 0:
729+
return None
730+
728731
return RBXInstance(object_address, self.memory_module)
729732

730733
return None

0 commit comments

Comments
 (0)