From 9b5962aba420ec9356081336a10219bca5f77ed6 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Fri, 29 Nov 2024 07:42:41 +0100 Subject: [PATCH] banner always exists even if only "" it exists and there isn't an error. not adding "" or texture string, causes a non critical error. --- init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 427294c..31e3eb4 100644 --- a/init.lua +++ b/init.lua @@ -261,9 +261,7 @@ banners.banner_on_activate = function(self) yaw = 4.71238898038469 -- 3 * pi / 2 end self.object:set_yaw(yaw) - if banner then - set_banner_texture(self.object, banner) - end + set_banner_texture(self.object, banner) end core.register_entity("banners:banner_ent", {