Boats / carts: Fix and improve on_punch functions
authorparamat <mat.gregory@virginmedia.com>
Tue, 29 Nov 2016 02:28:55 +0000 (02:28 +0000)
committerparamat <mat.gregory@virginmedia.com>
Wed, 30 Nov 2016 02:44:44 +0000 (02:44 +0000)
commitf06f66ccc287e4773e4259cbeba95fcb0f522363
tree5efaa7e55f268a8259b39db748b19e434228b86e
parent04f045158fe6ee4440a58654177255db435b596f
Boats / carts: Fix and improve on_punch functions

Boats:
Previously, boats were not added to inventory in creative mode, fix.
In creative mode multiple boats will not be added to inventory.
Add comment.

Carts:
Set speed to 2 if punched by a non-player, to match the effect of a
player punch.
Add comments.
mods/boats/init.lua
mods/carts/cart_entity.lua