`query(e, 'portal_timer')` and `query(e, 'portal_cooldown')` are reversed
YotaXP opened this issue ยท 0 comments
query(e, 'portal_cooldown')
results in how long the player has been standing in a nether portal, while query(e, 'portal_timer')
results in the player's portal cooldown, counting down as they exit a portal. This is backwards to what the docs indicate.
Note, the inverse modify()
code appears to be correct. This issue only applies to query()
.
Tested with 1.4.79
It appears to have been this way since they were added to the API.
Relevant code:
fabric-carpet/src/main/java/carpet/script/value/EntityValue.java
Lines 526 to 527 in 81d3b9e