mirror of
https://github.com/pandorabox-io/banners.git
synced 2025-01-06 16:10:32 +01:00
remove set_banner_texture()
only used once and is easy enough to have inline
This commit is contained in:
parent
d86c93bcc5
commit
3d5805c8a9
8
init.lua
8
init.lua
@ -241,10 +241,6 @@ function banners.banner_after_place(pos, _, itemstack, pointed_thing)
|
||||
end
|
||||
|
||||
-- banner entity
|
||||
local set_banner_texture = function(obj, texture)
|
||||
obj:set_properties({ textures = { "banner_uv_text.png^" .. texture } })
|
||||
end
|
||||
|
||||
|
||||
function banners:banner_on_activate()
|
||||
local pos = self.object:get_pos()
|
||||
@ -261,7 +257,9 @@ function banners:banner_on_activate()
|
||||
yaw = 4.71238898038469 -- 3 * pi / 2
|
||||
end
|
||||
self.object:set_yaw(yaw)
|
||||
set_banner_texture(self.object, banner)
|
||||
self.object:set_properties({
|
||||
textures = { "banner_uv_text.png^" .. banner }
|
||||
})
|
||||
end
|
||||
|
||||
core.register_entity("banners:banner_ent", {
|
||||
|
Loading…
Reference in New Issue
Block a user