Skip to content

Commit fcde20b

Browse files
committed
Fixed two NameErrors
Thanks to @MrMalina
1 parent d4d2834 commit fcde20b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addons/source-python/packages/source-python/core/dumps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _get_datamap(classname):
175175
# We haven't found an entity. Let's create it temporarily
176176
entity = BaseEntity.create(classname)
177177
datamap = entity.datamap
178-
entity.destroy()
178+
entity.remove()
179179
return datamap
180180

181181

addons/source-python/packages/source-python/entities/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def create(cls, classname):
149149
if entity.is_networked():
150150
return cls(entity.index)
151151

152-
entity.destroy()
152+
entity.remove()
153153
raise ValueError('"{}" is not a networked entity.'.format(classname))
154154

155155
@classmethod

0 commit comments

Comments
 (0)