Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display item description when missing item
Browse files Browse the repository at this point in the history
Emojigit committed Jun 17, 2024

Verified

This commit was signed with the committer’s verified signature.
Emojigit 1F616EMO~nya
1 parent 64416fd commit 0abbb02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util_execute_cycle.lua
Original file line number Diff line number Diff line change
@@ -289,8 +289,9 @@ digtron.execute_dig_cycle = function(pos, clicker)
return_string = S("Digtron connected to at least one builder with no output material assigned.") .. "\n"
return_code = 6
elseif test_build_return_code == 2 then
local item_display_name = failed_to_find:get_short_description() .. " (" .. failed_to_find:get_name() .. ")"
minetest.sound_play("dingding", {gain=1.0, pos=pos}) -- Insufficient inventory
return_string = S("Digtron has insufficient building materials. Needed: @1", failed_to_find:get_name()) .. "\n"
return_string = S("Digtron has insufficient building materials. Needed: @1", item_display_name) .. "\n"
return_code = 7
end
return pos, return_string .. status_text, return_code --Abort, don't dig and don't build.

0 comments on commit 0abbb02

Please sign in to comment.