1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-30 13:50:23 +02:00

Revert "Fix registering beds in other mods namespace"

This reverts commit 9321c265b6.
Note: the commit actually touched buckets, not beds
This commit is contained in:
sfan5
2025-06-20 11:21:24 +02:00
parent 407087977c
commit 69b2fb7a32
2 changed files with 1 additions and 4 deletions

View File

@ -51,8 +51,6 @@ end
-- This function can be called from any mod (that depends on bucket).
function bucket.register_liquid(source, flowing, itemname, inventory_image, name,
groups, force_renew)
local itemname_raw = itemname
itemname = itemname and itemname:match(":(.+)") or itemname
bucket.liquids[source] = {
source = source,
flowing = flowing,
@ -62,7 +60,7 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
bucket.liquids[flowing] = bucket.liquids[source]
if itemname ~= nil then
minetest.register_craftitem(itemname_raw, {
minetest.register_craftitem(itemname, {
description = name,
inventory_image = inventory_image,
stack_max = 1,