diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-12-27 22:21:22 +0100 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-12-27 22:21:22 +0100 |
commit | 2b018d490ecdb60a19073525398dece8663409ac (patch) | |
tree | 31c98ad6037aeae6c361110a63cf82c8e0569030 | |
parent | 7a9af47fe25fadb59ace8875ed9f138cbad13236 (diff) | |
download | fireworkz-2b018d490ecdb60a19073525398dece8663409ac.tar.gz fireworkz-2b018d490ecdb60a19073525398dece8663409ac.tar.bz2 fireworkz-2b018d490ecdb60a19073525398dece8663409ac.zip |
Fix infinite usage of fireworks.
-rw-r--r-- | init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -268,8 +268,10 @@ for _, i in pairs(variant_list) do on_use = function(itemstack, user, pointed_thing) local pos = minetest.get_pointed_thing_position(pointed_thing, true) if pos then - fireworkz.launch(pos, rdt) + itemstack:take_item() + fireworkz.launch(pos, rdt) end + return itemstack end, on_construct = function(pos) |