1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-21 18:11:11 +00:00

Set item description as infotext for item entities (#13728)

This commit is contained in:
fluxionary 2023-08-23 22:00:18 -07:00 committed by GitHub
parent a65cdbe66e
commit 587e2b2526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,7 @@ core.register_entity(":__builtin:item", {
automatic_rotate = math.pi * 0.5 * 0.2 / size, automatic_rotate = math.pi * 0.5 * 0.2 / size,
wield_item = self.itemstring, wield_item = self.itemstring,
glow = glow, glow = glow,
infotext = stack:get_description(),
}) })
-- cache for usage in on_step -- cache for usage in on_step