Unable to get block timers
Closed this issue · 1 comments
Michaltyk2 commented
Description
Cannot put variable block event.block
(from BlockEvent$InteractEvent
) as argument of block .getTimers()
(from IBlockScripted
).
Expected behavior
Fixed inserting argument to get generated code:
event.block.getTimers()
PopSlime commented
Confirmed
Nice catch. For some reason the block
field of BlockEvent
is type of IBlock
instead of IBlockScripted
, which causes the type checking system to reject the connection.
I will explore a way to solve it.