From 02e1984781259c1f02d95ccb3bde8c533ef288a8 Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 5 May 2024 21:39:25 +0300 Subject: Removed __idiv metamethod from color lib for LuaJIT compatibility. --- examples/resources/lib/color.lua | 3 --- 1 file changed, 3 deletions(-) (limited to 'examples/resources/lib') diff --git a/examples/resources/lib/color.lua b/examples/resources/lib/color.lua index 7c98e92..9fc31f0 100644 --- a/examples/resources/lib/color.lua +++ b/examples/resources/lib/color.lua @@ -29,9 +29,6 @@ local metatable = { __pow = function( c, v ) return Color:new( c.r ^ v, c.g ^ v, c.b ^ v, c.a ^ v ) end, - __idiv = function( c, v ) - return Color:new( c.r // v, c.g // v, c.b // v, c.a // v ) - end, __len = function() return 4 end, -- cgit v1.2.3