Browse Source

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

fluxionary 8 months ago
parent
commit
587e2b2526
1 changed files with 1 additions and 0 deletions
  1. 1 0
      builtin/game/item_entity.lua

+ 1 - 0
builtin/game/item_entity.lua

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