Minor fix
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 522 B |
|
@ -46,7 +46,7 @@ local function clean()
|
|||
for j = 1, #objs do
|
||||
local obj = objs[j]
|
||||
if not obj:is_player() then
|
||||
local entname = obj:get_luaentity().name
|
||||
local entname = obj:get_entity_name()
|
||||
if not minetest.registered_entities[entname] then
|
||||
obj:remove()
|
||||
end
|
||||
|
|
|
@ -7,7 +7,7 @@ local creative = minetest.settings:get_bool("creative_mode")
|
|||
local throwing_shoot_arrow = function(itemstack, player)
|
||||
for _,arrow in ipairs(arrows) do
|
||||
if player:get_inventory():get_stack("main", player:get_wield_index()+1):get_name() == arrow[1] then
|
||||
if not creative then
|
||||
if not creative or not minetest.is_singleplayer()then
|
||||
player:get_inventory():remove_item("main", arrow[1])
|
||||
end
|
||||
local playerpos = player:get_pos()
|
||||
|
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 835 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 882 B After Width: | Height: | Size: 176 B |
Before Width: | Height: | Size: 145 B After Width: | Height: | Size: 143 B |