Add empty pedestal support

This commit is contained in:
Buurazu authored and GitHub committed 2022-01-15 19:22:06 -05:00
1 parent 31a5c34146
commit 72eb284742
1 file changed
+2 -1
+2 -1
View File
@@ -408,7 +408,8 @@ local game = Game()
local function FlipCallback(descObj)
local flipItemID = EID:getEntityData(descObj.Entity, "EID_FlipItemID")
if Input.IsActionPressed(ButtonAction.ACTION_MAP, EID.player.ControllerIndex) then
if flipItemID <= 0 then return descObj end
if descObj.ObjSubType == 0 or Input.IsActionPressed(ButtonAction.ACTION_MAP, EID.player.ControllerIndex) then
local descEntry = EID:getDescriptionObj(5, 100, flipItemID)
return descEntry
end