From 4f0a8590837d37b3d42b59a03384fc6630fe0013 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sat, 13 Aug 2022 17:15:55 -0300 Subject: [PATCH] hook for the car painter --- trike_entities.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trike_entities.lua b/trike_entities.lua index 27f28dd..c4fdf8b 100644 --- a/trike_entities.lua +++ b/trike_entities.lua @@ -163,6 +163,10 @@ minetest.register_entity("trike:trike", { _inv = nil, _inv_id = "", + _change_color = function(self, colstr) + airutils.paint(self, colstr, "trike_painting.png") + end, + get_staticdata = function(self) -- unloaded/unloads ... is now saved return minetest.serialize({ stored_energy = self._energy,