supports_direction on prototypes returning true unintuitively

Place to get help with not working mods / modding interface.
Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 61
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

supports_direction on prototypes returning true unintuitively

Post by Gweneph »

Stone furnace entities don't support direction:

Code: Select all

/c game.player.print(game.player.selected.supports_direction)
Returns False. However, the stone furnace prototype does support direction:

Code: Select all

/c game.player.print(game.player.selected.prototype.supports_direction)
returns True.
This seems to be the case for many prototypes, and I'm wondering if this is a bug, or intentional.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: supports_direction on prototypes returning true unintuitively

Post by DaveMcW »

Try with an assembling machine. It supports direction only if the recipe involves fluids.

Furnaces work the same way, though I'm not sure you can ever give a stone furnace a fluid recipe.
Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 61
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Re: supports_direction on prototypes returning true unintuitively

Post by Gweneph »

Thanks for the reply. I was originally asking because it seemed like the prototypes that supported rotation but whose entities didn't wouldn't change the player's build rotation direction when rotated in hand. However, upon further testing they do indeed affect the player's build rotation, so all is consistent in the world.
Post Reply

Return to “Modding help”