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 ? I dont find any error.
Fire still spreads, and I get "spreading fire" message