Plethora Peripherals

Plethora Peripherals

3M Downloads

Canvas3d create() wrong arguments expected.

Wojbie opened this issue ยท 1 comments

commented

In 1.12.2 plethora this function expected a table:
obraz
But currently it seems to expect 3 numbers:
obraz

Related parts of code:

val CREATE = BasicMethod.of(
"create", "function([offsetX: number, offsetY: number, offsetZ: number]) -- Create a new 3D canvas centred relative to the current position.",
{ unbaked, args -> create(unbaked, args) }, false
)
private fun create(unbaked: IUnbakedContext<Origin3d>, args: IArguments): FutureMethodResult {
val ctx = getContext(unbaked, Origin3d::class.java)

https://github.com/SquidDev-CC/plethora/blob/77f1c5ad2137625506e197562636eaa689299fa5/src/main/java/org/squiddev/plethora/gameplay/modules/glasses/methods/MethodsCanvas3D.java#L28-L32

commented

Should be OK to fix this, the owner of computer #209 on SC3 will need to update their program though
image