From 99114429777e9f3ae2594757e5ae84d81f3ef188 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sun, 28 May 2023 12:56:19 +0200 Subject: [PATCH] `texmod`: Fix `:mask(...)` and `.mask` name collision --- minetest/texmod/dsl.lua | 4 ++-- minetest/texmod/write.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/minetest/texmod/dsl.lua b/minetest/texmod/dsl.lua index 523ea42..c2713e7 100644 --- a/minetest/texmod/dsl.lua +++ b/minetest/texmod/dsl.lua @@ -311,11 +311,11 @@ function texmod:colorize(color, ratio) } end -function texmod:mask(mask) +function texmod:mask(_mask) return new{ type = "mask", base = self, - mask = mask + _mask = _mask } end diff --git a/minetest/texmod/write.lua b/minetest/texmod/write.lua index 8abb4b6..19c1cdb 100644 --- a/minetest/texmod/write.lua +++ b/minetest/texmod/write.lua @@ -87,7 +87,7 @@ function pw:colorize(w) end function pw:mask(w) - w.colon(); w.esctex(self.mask) + w.colon(); w.esctex(self._mask) end function pw:lowpart(w)