I'm using FTB Infinity and I'm attempting to use the OpenPeripheralsAddons block, the Sensor. However, after wrapped the peripheral, It seems I can't get an output from getPlayers(). I'm unaware how to paste my code into a copy-paste box, so I'll type it out like normal.
s = peripheral.wrap("back")
s.getPlayers()
One anomaly is that when I go into the interactive Lua program built in to the computer, is that the same code works.
s = peripheral.wrap("back")
s.getPlayers()
One anomaly is that when I go into the interactive Lua program built in to the computer, is that the same code works.