Dedicated server: offer server.properties' resource pack as vanilla does
ServerResourcePackConfigurationTask: after the tags, the configuration phase sends the pack (id from the URL when none is given, hash, required, prompt) and waits for a final answer, with keepalives every 15 s. A declined required pack disconnects with multiplayer.requiredTexturePrompt.disconnect, in configuration or in play, with vanilla's log lines. tools/test_server_resource_pack_parity.py drives a vanilla 26.3 server and Horizon's with the same five players (declines, accepts then declines in play, fails the download, answers after 20 s, declines an optional pack) and compares what each one receives. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -165,6 +165,8 @@ hardcore = false
|
||||
# Any other server.properties key, spelled as vanilla spells it:
|
||||
[properties]
|
||||
# spawn-protection = 16
|
||||
# resource-pack = "https://example.com/pack.zip" # offered to players as they join; with
|
||||
# resource-pack-sha1, require-resource-pack and resource-pack-prompt, as on vanilla
|
||||
|
||||
[engine]
|
||||
path = "" # the game program; empty: the one beside horizon-server
|
||||
|
||||
Reference in New Issue
Block a user