mirror of
https://github.com/pandorabox-io/banners.git
synced 2025-01-08 17: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:
parent
38bf923967
commit
9b5962aba4
2
init.lua
2
init.lua
@ -261,10 +261,8 @@ banners.banner_on_activate = function(self)
|
|||||||
yaw = 4.71238898038469 -- 3 * pi / 2
|
yaw = 4.71238898038469 -- 3 * pi / 2
|
||||||
end
|
end
|
||||||
self.object:set_yaw(yaw)
|
self.object:set_yaw(yaw)
|
||||||
if banner then
|
|
||||||
set_banner_texture(self.object, banner)
|
set_banner_texture(self.object, banner)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
core.register_entity("banners:banner_ent", {
|
core.register_entity("banners:banner_ent", {
|
||||||
initial_properties = {
|
initial_properties = {
|
||||||
|
Loading…
Reference in New Issue
Block a user