1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-01-23 16:30:19 +01:00

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 end
local meta = arrow[2] local meta = arrow[2]
player:set_wielded_item({name=loaded, wear=wear, metadata=meta}) player:set_wielded_item({name=loaded, wear=wear, metadata=meta})
break
end end
end end
end end

View File

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