OpenMods / OpenPeripheral

https://openmods.info
MIT License
67 stars 25 forks source link

Fluid tanks getTankInfo should return with a lua table instead of string #83

Closed hron84 closed 10 years ago

hron84 commented 10 years ago

If I try to call getTankInfo() for any tank-like object (BC tanks, RailCraft Iron Tank, RailCraft Coke Oven, etc) I get a table what contains only one string, net.minecraftforge.fluids.FluidTankInfo@7daef4ea (the string after @ varies by query). It seems like return of a normal Java toString method, and really not a lua table, so I cannot call anything on it. It is a simple string object.

Exampel code:


tank = peripheral.wrap("back")
tinfo = tank.getTankInfo("unknown")[1]

The variable tinfo will contain string similar to my previous example.

I use:

SinZ163 commented 10 years ago

You are using an ancient version of OpenPeripheral

Get a build from http://openmods.info:8080

hron84 commented 10 years ago

They should be linked out on your webpage...

mikeemoo commented 10 years ago

No, they shouldn't. OpenPeripheral is still in beta.