1
0
Fork 0
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:
Lars Müller 2024-10-28 15:57:54 +01:00 committed by GitHub
parent d849d51c2d
commit 88c7a54e08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
78 changed files with 914 additions and 914 deletions

View file

@ -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" },