BlockBuilder .texture(Direction, String) ambiguity with .texture(String, String)
Spiker985 opened this issue ยท 1 comments
Spawned from this discord thread.
The following error message occurs when using either
or
Error occurred while handling event 'block.registry': The choice of Java method dev.latvian.kubejs.block.BlockBuilder.texture matching JavaScript argument types (net.minecraft.util.Direction,string) is ambiguous; candidate methods are:
class dev.latvian.kubejs.block.BlockBuilder texture(java.lang.String,java.lang.String)
class dev.latvian.kubejs.block.BlockBuilder texture(net.minecraft.util.Direction,java.lang.String) (startup_scripts:script.js#22)
Specifically .texture('up', '<texture path>')
and .texture(Direction.UP, '<texture path>')
or .texture(Facing.UP, '<texture path>')
Workaround is to just use the standard model/block json
Resolved with commit 6a2ad19