Skip to content

Commit 643ac9d

Browse files
committedMay 22, 2016
Item entities: Don't show description as infotext
Partially reverts #3547 Infotext remains optional for objects, empty by default
1 parent 88acda0 commit 643ac9d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed
 

‎builtin/game/item_entity.lua

-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ core.register_entity(":__builtin:item", {
3131
spritediv = {x = 1, y = 1},
3232
initial_sprite_basepos = {x = 0, y = 0},
3333
is_visible = false,
34-
infotext = "",
3534
},
3635

3736
itemstring = '',
@@ -51,7 +50,6 @@ core.register_entity(":__builtin:item", {
5150
local c = s
5251
local itemtable = stack:to_table()
5352
local itemname = nil
54-
local description = ""
5553
if itemtable then
5654
itemname = stack:to_table().name
5755
end
@@ -60,7 +58,6 @@ core.register_entity(":__builtin:item", {
6058
if core.registered_items[itemname] then
6159
item_texture = core.registered_items[itemname].inventory_image
6260
item_type = core.registered_items[itemname].type
63-
description = core.registered_items[itemname].description
6461
end
6562
local prop = {
6663
is_visible = true,
@@ -69,7 +66,6 @@ core.register_entity(":__builtin:item", {
6966
visual_size = {x = s, y = s},
7067
collisionbox = {-c, -c, -c, c, c, c},
7168
automatic_rotate = math.pi * 0.5,
72-
infotext = description,
7369
}
7470
self.object:set_properties(prop)
7571
end,

0 commit comments

Comments
 (0)