Fixed pathfinder entity spawing stuff when killed

This commit is contained in:
Wofsauge committed 2021-06-05 02:57:45 +02:00
1 parent cc2e90d640
commit 89893399b7
1 file changed
+1 -1
+1 -1
View File
@@ -423,7 +423,7 @@ function EID:onGameUpdate()
return
end
if EID.pathCheckerEntity == nil then
EID.pathCheckerEntity = Isaac.Spawn(17, 69420, 0, EID.player.Position, nullVector, EID.player) -- Spawns the EID Helper entity
EID.pathCheckerEntity = game:Spawn(17, 69420, EID.player.Position, nullVector, EID.player ,0 , 4354) -- Spawns the EID Helper entity with seed that doesnt spawn rewards
EID.pathCheckerEntity:ClearEntityFlags(EntityFlag.FLAG_APPEAR)
EID.pathCheckerEntity:AddEntityFlags (EntityFlag.FLAG_PERSISTENT | EntityFlag.FLAG_NO_STATUS_EFFECTS | EntityFlag.FLAG_NO_SPRITE_UPDATE | EntityFlag.FLAG_HIDE_HP_BAR | EntityFlag.FLAG_NO_DEATH_TRIGGER)
EID.pathCheckerEntity.EntityCollisionClass = EntityCollisionClass.ENTCOLL_NONE