[0.12.6] transportbelt-to-ground vs transport-belt-to-ground
Posted: Thu Sep 03, 2015 1:07 pm
I have an entity "ghost" verified as having name "entity-ghost". I can print out the "ghost_type" using "game.player.print(ghost.ghost_type)", and this prints "transport-belt-to-ground". However, if I try to read "ghost.belt_to_ground_type" the game crashes with the error:
My thought is that there is a typo and "transportbelt-to-ground" is supposed to be "transport-belt-to-ground". This could just be a typo in the error message string, but given that "belt_to_ground_type" is supposed to be an available property on "transport-belt-to-ground" entities I suspect the typo is elsewhere as well.
Code: Select all
Error while running the event handler: __QuickPrints__/control.lua:64: Callable only on transportbelt-to-ground type entities.