From 40aa26e59d5c806a84eeb3a0ded398393c8ae989 Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Mon, 5 Jul 2021 17:10:59 +0500 Subject: Fixed shader error on MacOS --- cwd/assets/altcraft/shaders/vert/face.vs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cwd/assets') diff --git a/cwd/assets/altcraft/shaders/vert/face.vs b/cwd/assets/altcraft/shaders/vert/face.vs index 469ea94..93e623d 100644 --- a/cwd/assets/altcraft/shaders/vert/face.vs +++ b/cwd/assets/altcraft/shaders/vert/face.vs @@ -23,5 +23,5 @@ void main() { vs_out.Texture.y -= (uv[2].y - uv[0].y) * trunc(mod(GlobalTime * 4.0f, animation)); float faceLight = clamp(light.x / 15.0 + (light.y / 15.0) * DayTime, MinLightLevel, 1.0); - vs_out.Color = mix(color.rgb * faceLight, vec3(1,1,1) * faceLight, (color == vec3(0,0,0))); + vs_out.Color = mix(color.rgb * faceLight, vec3(1,1,1) * faceLight, float(color == vec3(0,0,0))); } -- cgit v1.2.3 From 28cda3a34c85a35be2e1e4fa35b10fae5d0956d7 Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Mon, 5 Jul 2021 18:36:28 +0500 Subject: Added disconnect messages --- cwd/assets/altcraft/scripts/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cwd/assets') diff --git a/cwd/assets/altcraft/scripts/init.lua b/cwd/assets/altcraft/scripts/init.lua index b60a988..c938e94 100644 --- a/cwd/assets/altcraft/scripts/init.lua +++ b/cwd/assets/altcraft/scripts/init.lua @@ -7,6 +7,7 @@ local plugin = { onTick = nil, onRequestBlockInfo = nil, onChatMessage = nil, + onDisconnected = nil, } function plugin.onLoad () @@ -104,6 +105,16 @@ function plugin.onChatMessage(chat, pos) MoveChatToBottom = true end +function plugin.onDisconnected(reason) + local mmDoc = {} + for i,d in ipairs(rmlui.contexts["default"].documents) do + if d.title == "MainMenu" then + mmDoc = d + end + end + mmDoc:GetElementById('disclaimer').inner_rml = reason +end + AC.RegisterDimension(0, Dimension.new("overworld", true)) AC.RegisterDimension(-1, Dimension.new("the_nether", false)) AC.RegisterDimension(1, Dimension.new("the_end", false)) -- cgit v1.2.3