0.4.16 functions

This commit is contained in:
TenPlus1 2018-07-02 16:14:11 +01:00
parent 5832a5243f
commit 5f34a53a39

View File

@ -299,13 +299,13 @@ local punchy = function(player, hitter, time_from_last_punch, tool_capabilities,
player:set_attach(ent, "", {x = 0, y = 0, z = 0}, {x = 0, y = yaw, z = 0})
ent:setvelocity({
ent:set_velocity({
x = dir.x * vel,
y = 0,
z = dir.z * vel
})
ent:setacceleration({
ent:set_acceleration({
x = dir.x * -1,
y = 0,
z = dir.z * -1