Fix game crash on pressure plate dig

This commit is contained in:
Jeija 2012-04-07 10:03:00 +02:00
parent f8be926915
commit 8870d491ae

View File

@ -144,7 +144,7 @@ minetest.register_abm(
minetest.register_on_dignode( minetest.register_on_dignode(
function(pos, oldnode, digger) function(pos, oldnode, digger)
if oldnode.name == "mesecons_pressureplates:pressure_plate_stone_on" then if oldnode.name == "mesecons_pressureplates:pressure_plate_stone_on" then
mesecon:receptor_off(pos, mesecons:get_rules("pressureplate")) mesecon:receptor_off(pos, mesecon:get_rules("pressureplate"))
end end
end end
) )