mirror of
https://github.com/APercy/airutils
synced 2025-11-09 00:08:00 +01:00
Merge pull request #33 from farribeiro/common_entities
Change to core namespace in common_entities
This commit is contained in:
commit
6389592791
@ -1,7 +1,7 @@
|
||||
--
|
||||
-- seat pivot
|
||||
--
|
||||
minetest.register_entity('airutils:seat_base',{
|
||||
core.register_entity('airutils:seat_base',{
|
||||
initial_properties = {
|
||||
physical = false,
|
||||
collide_with_objects=false,
|
||||
@ -12,13 +12,13 @@ initial_properties = {
|
||||
},
|
||||
|
||||
on_activate = function(self,std)
|
||||
self.sdata = minetest.deserialize(std) or {}
|
||||
self.sdata = core.deserialize(std) or {}
|
||||
if self.sdata.remove then self.object:remove() end
|
||||
end,
|
||||
|
||||
get_staticdata=function(self)
|
||||
self.sdata.remove=true
|
||||
return minetest.serialize(self.sdata)
|
||||
return core.serialize(self.sdata)
|
||||
end,
|
||||
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user