New FurnaceStartsSmeltingEvent returns an incorrect total_cook_time context value
Baivo opened this issue · 0 comments
Baivo commented
From: dev/plugin/src/main/java/com/denizenscript/denizen/events/block/FurnaceStartsSmeltingEvent.java
The event returns the <context.total_cook_time> using ticks, but the way it's declared as a DurationTag means that the returned value is as a tick value as seconds.
I.e. instead of it returning the default cook time of 200 ticks as d@10s, it returns the total cook time as d@200s
case "total_cook_time": return new DurationTag(event.getTotalCookTime());