From 073b2e43ff04eaeea5a072caeed4bce8709bf3c5 Mon Sep 17 00:00:00 2001 From: Aaron Suen Date: Sat, 5 Nov 2022 16:24:16 -0400 Subject: [PATCH] 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. --- docs/screenshot-world/.gitignore | 1 + docs/screenshot-world/worldmods/mocksetup/init.lua | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/screenshot-world/.gitignore b/docs/screenshot-world/.gitignore index f8619cad..a235b577 100644 --- a/docs/screenshot-world/.gitignore +++ b/docs/screenshot-world/.gitignore @@ -7,6 +7,7 @@ players.* players groups.txt nc_api.template.tr +nc_api.template.po texturepack_override.template.txt world.mt settingtypes.txt diff --git a/docs/screenshot-world/worldmods/mocksetup/init.lua b/docs/screenshot-world/worldmods/mocksetup/init.lua index 627df529..7c583244 100644 --- a/docs/screenshot-world/worldmods/mocksetup/init.lua +++ b/docs/screenshot-world/worldmods/mocksetup/init.lua @@ -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})