mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Rename minetest.*
to core.*
in devtest
This commit is contained in:
parent
d849d51c2d
commit
88c7a54e08
78 changed files with 914 additions and 914 deletions
|
@ -1,6 +1,6 @@
|
|||
-- Bucket: Punch liquid source or flowing liquid to collect it
|
||||
|
||||
minetest.register_tool("bucket:bucket", {
|
||||
core.register_tool("bucket:bucket", {
|
||||
description = "Bucket".."\n"..
|
||||
"Picks up liquid nodes",
|
||||
inventory_image = "bucket.png",
|
||||
|
@ -13,10 +13,10 @@ minetest.register_tool("bucket:bucket", {
|
|||
return
|
||||
end
|
||||
-- Check if pointing to a liquid
|
||||
local n = minetest.get_node(pointed_thing.under)
|
||||
local def = minetest.registered_nodes[n.name]
|
||||
local n = core.get_node(pointed_thing.under)
|
||||
local def = core.registered_nodes[n.name]
|
||||
if def ~= nil and (def.liquidtype == "source" or def.liquidtype == "flowing") then
|
||||
minetest.add_node(pointed_thing.under, {name="air"})
|
||||
core.add_node(pointed_thing.under, {name="air"})
|
||||
local inv = user:get_inventory()
|
||||
if inv then
|
||||
inv:add_item("main", ItemStack(n.name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue