Make screenshot world players invisible

- Prevent them from interfering with each other if
  one machine is used to host the game in "Host
  Server" non-dedicated mode and another is used
  to actually join to take the screenshot.
- Multiple player YCTIWY things shouldn't happen
  anymore.
This commit is contained in:
Aaron Suen 2022-11-05 16:24:16 -04:00
parent a9b06f5959
commit 073b2e43ff
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@ players.*
players
groups.txt
nc_api.template.tr
nc_api.template.po
texturepack_override.template.txt
world.mt
settingtypes.txt

View File

@ -93,7 +93,9 @@ end
nodecore.register_playerstep({
label = "mock hud/fov clear",
action = function(player)
action = function(player, data)
data.properties.visual_size = {x = 0, y = 0}
nodecore.hud_set(player, {label = "cheats", ttl = 0})
nodecore.hud_set(player, {label = "hintcomplete", ttl = 0})