blocking fire spreading doesn't work (or Im doing bad)
#1
function Initialize(Plugin)
	Plugin:SetName("NoFireSpread")
	Plugin:SetVersion(1)

	cPluginManager.AddHook(cPluginManager.HOOK_BLOCK_SPREAD, OnBlockSpread)

	LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
	return true
end




function OnBlockSpread(World, BlockX, BlockY, BlockZ, Source)
	print("spreading")
	if (Source == ssFireSpread) then
	    print("spreading fire!!")
	    return true
	end
end

Am I doing something wrong Sad? I dont find any error.
Fire still spreads, and I get "spreading fire" message
Reply
Thanks given by:


Messages In This Thread
blocking fire spreading doesn't work (or Im doing bad) - by tonibm19 - 06-15-2014, 06:09 AM



Users browsing this thread: 1 Guest(s)