CC: Tweaked

CC: Tweaked

42M Downloads

Printer gives wrong field calls

Jannik24 opened this issue ยท 1 comments

commented

Minecraft Version

1.20.x

Version

1.110.3

Details

At beginning i wanted to print using the code from the CC:Tweaked Wiki
Then i've noticed "printer.newPage()" gives a attempt to field call (nil value)

I've tested a bit and comes to the conclusion, Printer has wrong field calls
For reproduction, with help of ChatGPT: This is a code that checks every side if there is a printer, then checks the Field Calls
https://pastebin.com/Kd4hFHfa

ChatGPT says: "The output you provided indicates that the peripheral you wrapped is not a printer but an inventory-like peripheral, such as a chest, storage system, or something similar. This is why you see methods related to item handling (pullItems, getItemDetail, list, getItemLimit, pushItems, size) instead of the printer methods (newPage, write, endPage)."

Bild_2024-05-21_231052886
If this is not fixed, then Computercraft gives "printer.newPage()" a nil value

(I'm not 100% sure if this is exactly the problem and maybe i could be completely wrong, but on attempt to call field "printer.newPage" gives a nil value)

commented

Thanks for the report! Assuming you have Optifine installed, this is a duplicate of #1458. I'd recommend removing Optifine, and replacing it with more stable/reliable mod like Occulus.