mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-11 21:45:43 -04:00
Fixed a null error with loot_collection
This commit is contained in:
@@ -8,7 +8,7 @@ def createRadial(core, owner, target, radials):
|
||||
return
|
||||
|
||||
def handleSelection(core, actor, target, option):
|
||||
if option == 21 and target:
|
||||
if option == 21 and target and target.getAttachment('CollectionItemName'):
|
||||
print (target.getAttachment('CollectionItemName'))
|
||||
core.collectionService.addCollection(actor, target.getAttachment('CollectionItemName'))
|
||||
core.objectService.useObject(actor, target)
|
||||
|
||||
Reference in New Issue
Block a user