Added enderpearl name in its description

master
Giov4 2020-09-14 00:26:34 +02:00
parent c061354c9f
commit 225fe35a03
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ local t = minetest.get_translator("enderpearl")
minetest.register_craftitem("enderpearl:ender_pearl", {
description = t("Left click to throw it@nIt will teleport you on the node it hits making you 2 damage@n(it won't work if you launch it to an unloaded world area)"),
description = "Enderpeal\n"..t("Left click to throw it@nIt will teleport you on the node it hits making you 2 damage@n(it won't work if you launch it to an unloaded world area)"),
inventory_image = "enderpearl.png",
stack_max = 16,
on_use =
@ -59,7 +59,7 @@ local thrown_ender_pearl = {
function thrown_ender_pearl:on_step(dtime, moveresult)
function thrown_ender_pearl:on_step(dtime, moveresult)
local collided_with_node = moveresult.collisions[1] and moveresult.collisions[1].type == "node"
-- if it's touching the ground or it collides with a node