[ISSUE]: Inventory peripherals are incompatible with CC:T's built-in implementation #5
Labels
confirmed
bug/issue has been confirmed by one of the devs, and was able to reporduce it
good first issue
Good for newcomers
Mod Version
1.0.1-beta
Describe the bug
KubeJS+CC:Tweaked provides its own implementation of CC:T's inventory peripherals. However, this implementation has several incompatibilities with the original, meaning that programs that work with just CC:T do not work with KubeJS+CC:Tweaked when installed.
inventory
rather than their block entity name (e.g.inventory_0
rather thanminecraft:chest_0
.pushItems("inventory_1", 1, nil, 1)
should run fine, but instead throws an error that thelimit
parameter must be a number.This problem is exacerbated by the fact that KubeJS provides its implementation of the generic peripherals for all block entities, not just those where a Javascript method has been written.
To Reproduce/Expected behaviour
inventory_N
, rather thanminecraft:chest_N
.peripheral.wrap("inventory_0").pushItems("inventory_1", 1, nil, 1)
. This should run, but instead errors with "Limit must be an invalid integer".Additional context
Ideally this mod would sit on top of the generic peripheral system, rather than wholesale replacing it. That's currently not possible, but I'm definitely happy to discuss what changes would be needed on CC:T's side to make it so.
The text was updated successfully, but these errors were encountered: