@@ -88,7 +88,7 @@ minetest.register_entity("mesecons_movestones:movestone_entity", {
88
88
89
89
on_step = function (self , dtime )
90
90
local pos = self .object :getpos ()
91
- pos .x , pos .y , pos .z = math.floor (pos .x ), math.floor (pos .y ), math.floor (pos .z )
91
+ pos .x , pos .y , pos .z = math.floor (pos .x + 0.5 ), math.floor (pos .y + 0.5 ), math.floor (pos .z + 0.5 )
92
92
local direction = mesecon :get_movestone_direction (pos )
93
93
94
94
if not direction then -- no mesecon power
@@ -172,14 +172,16 @@ minetest.register_entity("mesecons_movestones:sticky_movestone_entity", {
172
172
173
173
on_step = function (self , dtime )
174
174
local pos = self .object :getpos ()
175
- pos .x , pos .y , pos .z = math.floor (pos .x ), math.floor (pos .y ), math.floor (pos .z )
175
+ pos .x , pos .y , pos .z = math.floor (pos .x + 0.5 ), math.floor (pos .y + 0.5 ), math.floor (pos .z + 0.5 )
176
176
local direction = mesecon :get_movestone_direction (pos )
177
177
178
178
if not direction then -- no mesecon power
179
179
local name = minetest .env :get_node (pos ).name
180
180
if name ~= " air" and name ~= " ignore"
181
181
and minetest .registered_nodes [name ].liquidtype == " none" then
182
182
mesecon :mvps_push (pos , self .lastdir , MOVESTONE_MAXIMUM_PUSH )
183
+ -- STICKY
184
+ mesecon :mvps_pull_all (pos , self .lastdir )
183
185
end
184
186
minetest .env :add_node (pos , {name = " mesecons_movestones:sticky_movestone" })
185
187
self .object :remove ()
0 commit comments