OpenMods / OpenPeripheral-Addons

An addon for OpenPeripheral, adding physical blocks and items to the game
MIT License
11 stars 10 forks source link

getMinecartIds not working with vanilla, railcraft or traincraft carts #25

Closed BakermanLP closed 10 years ago

BakermanLP commented 10 years ago

Hello, tried to get informations about minecarts, but got this error message on the computercraft monitor:

net.minecraft.entity.item.EntityMinecartHopper cannot be cast to net.minecraft.entity.EntityLiving

The first line is different, which kind of cart I use (Vanilla, Railcraft or traincraft).

I only try a computer and on top of it a sensor of OpenPeripheralAddons. On one side (about 2 blocks away) there is a track and the testing cart on it. Simple code to test: p=peripheral.wrap("top") p.getMinecartIds()

Not more, not less.

Version list:

theoriginalbit commented 10 years ago

Thanks for the report, I can see the problem, I'll get right onto it.

BakermanLP commented 10 years ago

Wow, I am impressed. This bug was fixed in less than 60 minutes ... and the best ... now it works. Thanks a lot!

theoriginalbit commented 10 years ago

that's what happens when its a quick little fix ;)