austinv11 / PeripheralsPlusPlus

A pseudo-port of miscperipherals, with other stuff as well!
GNU General Public License v2.0
25 stars 28 forks source link

ME Bridge - Argument Bug #159

Closed mura3277 closed 8 years ago

mura3277 commented 8 years ago

So it has taken me a solid 30mins to figure out why I couldn't pass metadata to the retrieve method.

This is what I expected it to be: me.retrieve(tbl[lastIndex]["name"]..":"..tbl[lastIndex]["meta"], fixedItemNum, "up")

However the first argument requires a space in between the colon and the metadata string like this: me.retrieve(tbl[lastIndex]["name"]..": "..tbl[lastIndex]["meta"], fixedItemNum, "up")

From looking at the code it seems to be because of the extra split at the end of this line https://github.com/austinv11/PeripheralsPlusPlus/blob/master/src/main/java/com/austinv11/peripheralsplusplus/tiles/TileEntityMEBridge.java#l117

rolandoislas commented 8 years ago

The ME Bridge expects to parse the following format: modId:itemName metaData, with metaData being optional. For a vanilla item, the modId is "minecraft".

mura3277 commented 8 years ago

Oh my mistake. I swear it was differently previously. Anyway thanks for clearing that up.