Skip to content

Commit

Permalink
fix stone being swapped with tweak stone in your and when you place it
Browse files Browse the repository at this point in the history
  • Loading branch information
Elkien3 committed Dec 10, 2022
1 parent b8418a1 commit e49ee56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mods/default_tweaks/stonestagedig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ minetest.override_item("default:stone", {
node_placement_prediction = "default_tweaks:stone",
on_place = function(itemstack, placer, pointed_thing)
itemstack:set_name("default_tweaks:stone")
return minetest.item_place(itemstack, placer, pointed_thing)
itemstack = minetest.item_place(itemstack, placer, pointed_thing)
if itemstack:get_count() > 0 then
itemstack:set_name("default:stone")
end
return itemstack
end,
node_dig_prediction = "default_tweaks:stone_1",
after_dig_node = stone_after_dig,
Expand Down

0 comments on commit e49ee56

Please sign in to comment.