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:
parent
a9b06f5959
commit
073b2e43ff
1
docs/screenshot-world/.gitignore
vendored
1
docs/screenshot-world/.gitignore
vendored
@ -7,6 +7,7 @@ players.*
|
|||||||
players
|
players
|
||||||
groups.txt
|
groups.txt
|
||||||
nc_api.template.tr
|
nc_api.template.tr
|
||||||
|
nc_api.template.po
|
||||||
texturepack_override.template.txt
|
texturepack_override.template.txt
|
||||||
world.mt
|
world.mt
|
||||||
settingtypes.txt
|
settingtypes.txt
|
||||||
|
@ -93,7 +93,9 @@ end
|
|||||||
|
|
||||||
nodecore.register_playerstep({
|
nodecore.register_playerstep({
|
||||||
label = "mock hud/fov clear",
|
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 = "cheats", ttl = 0})
|
||||||
nodecore.hud_set(player, {label = "hintcomplete", ttl = 0})
|
nodecore.hud_set(player, {label = "hintcomplete", ttl = 0})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user