HyperScript 1.7.9
Two fixes found by the first run of the self-test on a real server (Paper 26.2).
Fixed
- Game rules on new Minecraft versions. Minecraft renamed its game rules in 1.21.11 (
keepInventorybecamekeep_inventory,doDaylightCyclebecameadvance_time, and so on). Reading or setting a rule by its old name failed withUnknown gameruleand stopped the trigger. Now either spelling works on every version, and a rule the server does not have is simply unset (or, when setting it, a warning) instead of an error. set absorption of <who>did nothing on Minecraft 1.20.2 and newer. The game no longer lets a player have more absorption than their "max absorption", which starts at zero. The limit is now raised first.
First results from a live server
Run on Paper 26.2 with SelfTest.hs, Worlds.hs and a chat, sidebar and tab list script:
- Worked: every language and variable check; ping, free slots, tab names, item cooldowns, ender chests; world spawn, difficulty, regions and region rules, holograms; toasts, titles, boss bars with notches, fireworks, player heads and potions as items; questions in chat and yes/no prompts; a menu with a player head; creating, visiting and deleting a void world; chat format; the sidebar;
/analytics. - Failed, fixed here: game rules by their old names, and absorption.
- Not reached: the two timer checks at the end of the self-test (
run ... inandcancel run), because the game rule error stopped the test before them. They run now.