diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-08-31 13:00:22 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-08-31 13:00:22 +0200 |
commit | 31eb128523f8e7baed31ee477dfba6fdd3003d80 (patch) | |
tree | d5fbcd6d08539f2abf9165d1953cd822928151c4 /init.lua | |
parent | 6053422cf292995b2a004ca0a21c640505ef32bb (diff) |
Fixed bug with rotations
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -36,12 +36,16 @@ farebox.rules = {x=0, y=2, z=0}} function farebox.open_faregate(pos) - minetest.swap_node(pos, {name="farebox:faregate_open"}) + node = minetest.get_node(pos) + node.name = "farebox:faregate_open" + minetest.swap_node(pos, node) minetest.sound_play("doors_steel_door_open", {pos = pos, gain = 0.3, max_hear_distance = 10}) end function farebox.close_faregate(pos) - minetest.swap_node(pos, {name="farebox:faregate"}) + node = minetest.get_node(pos) + node.name = "farebox:faregate" + minetest.swap_node(pos, node) minetest.sound_play("doors_steel_door_close", {pos = pos, gain = 0.3, max_hear_distance = 10}) end |