Minor fix

master
MoNTE48 2019-05-31 15:17:23 +02:00
parent eb31475373
commit a43e85636e
8 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 522 B

View File

@ -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

View File

@ -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()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 835 B

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 B

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 882 B

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 B

After

Width:  |  Height:  |  Size: 143 B