- changed title to 0.10.0a name versions of setTileEntityStringData() & setTileEntityIntData() do not work
0.10.0a name versions of setTileEntityStringData() & setTileEntityIntData() do not work
Issue #19
resolved
The functions for setting tile entity string and integer data do not work when using string names instead of indices (have not tested the float versions)
world.setTileEntityIntData(position, "storedEMC", 0); world.setTileEntityStringData(position, "adjacentRelays", "[]");
var emc = world.getTileEntityIntData(position, "storedEMC"); var adjacent = world.getTileEntityStringData(position, "adjacentRelays");
player.sendMessage("EMC: " + emc + " / adjacent: " + adjacent);
Should result in the message EMC: 0 / adjacent: []
instead returns EMC: -1 / adjacent: null
Comments (2)
-
reporter -
repo owner - changed status to resolved
- Log in to comment