prevent possible indicator error

This commit is contained in:
Buurazu authored and GitHub committed 2022-03-06 04:30:09 -05:00
1 parent d96195401d
commit 45bfa51c2d
1 file changed
+1 -1
+1 -1
View File
@@ -1280,7 +1280,7 @@ local function onRender(t)
end
-- Only display the indicator for the primary (closest / crafting) description
if EID.lastDescriptionEntity and not displayedCrafting then
EID:renderIndicator(EID.lastDescriptionEntity, EID.controllerIndexes[player.ControllerIndex])
EID:renderIndicator(EID.lastDescriptionEntity, EID.controllerIndexes[player.ControllerIndex] or 1)
table.insert(EID.CachedIndicators, {EID.lastDescriptionEntity, EID.controllerIndexes[player.ControllerIndex]})
end