mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +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,8 +1,8 @@
|
|||
-- Entities that test their callbacks
|
||||
|
||||
local message = function(msg)
|
||||
minetest.log("action", "[callbacks] "..msg)
|
||||
minetest.chat_send_all(msg)
|
||||
core.log("action", "[callbacks] "..msg)
|
||||
core.chat_send_all(msg)
|
||||
end
|
||||
|
||||
local get_object_name = function(obj)
|
||||
|
@ -18,11 +18,11 @@ local get_object_name = function(obj)
|
|||
end
|
||||
|
||||
local spos = function(self)
|
||||
return minetest.pos_to_string(vector.round(self.object:get_pos()))
|
||||
return core.pos_to_string(vector.round(self.object:get_pos()))
|
||||
end
|
||||
|
||||
-- Callback test entity (all callbacks except on_step)
|
||||
minetest.register_entity("callbacks:callback", {
|
||||
core.register_entity("callbacks:callback", {
|
||||
initial_properties = {
|
||||
visual = "upright_sprite",
|
||||
textures = { "callbacks_callback_entity.png" },
|
||||
|
@ -69,7 +69,7 @@ minetest.register_entity("callbacks:callback", {
|
|||
})
|
||||
|
||||
-- Only test on_step callback
|
||||
minetest.register_entity("callbacks:callback_step", {
|
||||
core.register_entity("callbacks:callback_step", {
|
||||
visual = "upright_sprite",
|
||||
textures = { "callbacks_callback_entity_step.png" },
|
||||
on_step = function(self, dtime)
|
||||
|
@ -78,7 +78,7 @@ minetest.register_entity("callbacks:callback_step", {
|
|||
})
|
||||
|
||||
-- Callback punch with nil puncher
|
||||
minetest.register_entity("callbacks:callback_puncher", {
|
||||
core.register_entity("callbacks:callback_puncher", {
|
||||
initial_properties = {
|
||||
visual = "upright_sprite",
|
||||
textures = { "callbacks_callback_entity.png" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue