1
0
mirror of https://github.com/pandorabox-io/banners.git synced 2025-01-06 16:10:32 +01:00

banner always exists

even if only "" it exists and there isn't an error.
not adding "" or texture string, causes a non critical error.
This commit is contained in:
Luke aka SwissalpS 2024-11-29 07:42:41 +01:00
parent 38bf923967
commit 9b5962aba4

View File

@ -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", {