mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-24 11:00:22 +02:00
Revert "Fix registering beds in other mods namespace"
This reverts commit 9321c265b6b834a5ca08aac61776dbf24a1a0546. Note: the commit actually touched buckets, not beds
This commit is contained in:
parent
407087977c
commit
69b2fb7a32
@ -35,7 +35,6 @@ The bucket API allows registering new types of buckets for non-default liquids.
|
|||||||
|
|
||||||
The filled bucket item is returned to the player that uses an empty bucket pointing to the given liquid source.
|
The filled bucket item is returned to the player that uses an empty bucket pointing to the given liquid source.
|
||||||
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.
|
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.
|
||||||
The bucket API also allows registering buckets in other namespace using colon-prefixed itemname (i.e. ":cows:bucket_milk").
|
|
||||||
|
|
||||||
|
|
||||||
Beds API
|
Beds API
|
||||||
|
@ -51,8 +51,6 @@ end
|
|||||||
-- This function can be called from any mod (that depends on bucket).
|
-- This function can be called from any mod (that depends on bucket).
|
||||||
function bucket.register_liquid(source, flowing, itemname, inventory_image, name,
|
function bucket.register_liquid(source, flowing, itemname, inventory_image, name,
|
||||||
groups, force_renew)
|
groups, force_renew)
|
||||||
local itemname_raw = itemname
|
|
||||||
itemname = itemname and itemname:match(":(.+)") or itemname
|
|
||||||
bucket.liquids[source] = {
|
bucket.liquids[source] = {
|
||||||
source = source,
|
source = source,
|
||||||
flowing = flowing,
|
flowing = flowing,
|
||||||
@ -62,7 +60,7 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
|
|||||||
bucket.liquids[flowing] = bucket.liquids[source]
|
bucket.liquids[flowing] = bucket.liquids[source]
|
||||||
|
|
||||||
if itemname ~= nil then
|
if itemname ~= nil then
|
||||||
minetest.register_craftitem(itemname_raw, {
|
minetest.register_craftitem(itemname, {
|
||||||
description = name,
|
description = name,
|
||||||
inventory_image = inventory_image,
|
inventory_image = inventory_image,
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user