mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 18:35:20 +02:00
Add the player name to dropped items
The player name is now added in the field "dropped_by" on the created entity.
This commit is contained in:
@@ -74,7 +74,8 @@ core.register_entity(":__builtin:item", {
|
||||
return core.serialize({
|
||||
itemstring = self.itemstring,
|
||||
always_collect = self.always_collect,
|
||||
age = self.age
|
||||
age = self.age,
|
||||
dropped_by = self.dropped_by
|
||||
})
|
||||
end,
|
||||
|
||||
@@ -89,6 +90,7 @@ core.register_entity(":__builtin:item", {
|
||||
else
|
||||
self.age = dtime_s
|
||||
end
|
||||
self.dropped_by = data.dropped_by
|
||||
end
|
||||
else
|
||||
self.itemstring = staticdata
|
||||
|
Reference in New Issue
Block a user