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:
parent
448e05ade9
commit
c57f383a3a
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user