improve and fix crash

This commit is contained in:
crabman77 2015-09-25 17:49:47 +02:00
parent 448e05ade9
commit c57f383a3a
2 changed files with 2 additions and 1 deletions

View File

@ -102,6 +102,7 @@ function throwing_reload (itemstack, player, pos, is_cross, loaded)
end
local meta = arrow[2]
player:set_wielded_item({name=loaded, wear=wear, metadata=meta})
break
end
end
end

View File

@ -47,7 +47,7 @@ function throwing_register_spear_standard (kind, desc, eq, toughness, craft)
lastpos={},
collisionbox = {0,0,0,0,0,0},
player = "",
wear = "",
wear = 0,
}
THROWING_SPEAR_ENTITY.on_step = function(self, dtime)