mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Update item entity for lodestone compass.
* Added another special case to the item entity registration for lodestone compasses, without this a dropped lodestone compass would turn into a regular compass on being dropped. * Update the compass and lodestone compass frame number to be the stereotype frame.
This commit is contained in:
parent
00dba67cd8
commit
baf8e0b79c
@ -418,7 +418,11 @@ minetest.register_entity(":__builtin:item", {
|
||||
end
|
||||
local stack = ItemStack(itemstring)
|
||||
if minetest.get_item_group(stack:get_name(), "compass") > 0 then
|
||||
stack:set_name("mcl_compass:16")
|
||||
if string.find(stack:get_name(), "_lodestone") then
|
||||
stack:set_name("mcl_compass:18_lodestone")
|
||||
else
|
||||
stack:set_name("mcl_compass:18")
|
||||
end
|
||||
itemstring = stack:to_string()
|
||||
self.itemstring = itemstring
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user