Skip to content

Commit 69b2fb7

Browse files
committed
Revert "Fix registering beds in other mods namespace"
This reverts commit 9321c26. Note: the commit actually touched buckets, not beds
1 parent 4070879 commit 69b2fb7

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

game_api.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ The bucket API allows registering new types of buckets for non-default liquids.
3535

3636
The filled bucket item is returned to the player that uses an empty bucket pointing to the given liquid source.
3737
When punching with an empty bucket pointing to an entity or a non-liquid node, the on_punch of the entity or node will be triggered.
38-
The bucket API also allows registering buckets in other namespace using colon-prefixed itemname (i.e. ":cows:bucket_milk").
3938

4039

4140
Beds API

mods/bucket/init.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ end
5151
-- This function can be called from any mod (that depends on bucket).
5252
function bucket.register_liquid(source, flowing, itemname, inventory_image, name,
5353
groups, force_renew)
54-
local itemname_raw = itemname
55-
itemname = itemname and itemname:match(":(.+)") or itemname
5654
bucket.liquids[source] = {
5755
source = source,
5856
flowing = flowing,
@@ -62,7 +60,7 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
6260
bucket.liquids[flowing] = bucket.liquids[source]
6361

6462
if itemname ~= nil then
65-
minetest.register_craftitem(itemname_raw, {
63+
minetest.register_craftitem(itemname, {
6664
description = name,
6765
inventory_image = inventory_image,
6866
stack_max = 1,

0 commit comments

Comments
 (0)