Added better sanity check for entity object accesses
This commit is contained in:
1 parent
522aa99465
commit
82d255c5d0
2 files changed
+11
-4
No files matched your search
+1
-1
@@ -899,7 +899,7 @@ EID.ItemPoolTypeToMarkup = { [0] = "{{ItemPoolTreasure}}", "{{ItemPoolShop}}", "
|
||||
-- If a function returns a value, it will be used as the offset
|
||||
EID.LocalModePositionOffset = {
|
||||
Default = Vector(0, 20),
|
||||
Shop = function(entity) if entity and not EID:IsGridEntity(entity) and entity:ToPickup() and entity:ToPickup():IsShopItem() then return Vector(0, 35) end end,
|
||||
Shop = function(entity) if EID:EntitySanityCheck(entity) and not EID:IsGridEntity(entity) and entity:ToPickup() and entity:ToPickup():IsShopItem() then return Vector(0, 35) end end,
|
||||
}
|
||||
|
||||
-- Character IDs that aren't allowed to have Red Health: ???, The Lost, The Soul
|
||||
|
||||
Reference in new issue
Block a user