Jump to content

Domesticated Beefalo still produce map icon trails


ADM
  • Pending

Thanks for finally fixing the issue with Glommer Map icons but this problem is still occurring for Beefalos (and also for Bernie I believe but this is harder to trigger) :

image.png.05b7be8a170a9ca10be099479708ea79.png


Steps to Reproduce

Get one beefalo, get a map, get plenty of icons for free as you walk around

  • Like 2



User Feedback


Yes, I agree. I think they should use inst.MiniMapEntity:SetCanUseCache(False) for beefalo,

AddPrefabPostInit("beefalo", function(inst) inst.MiniMapEntity:SetCanUseCache(false) end)

and add a map icon for the beef_bell so that players can find their domesticated beefalo.

This is the same as what Klei has done to fix this bug for Glommer and Chester,  i.e., adding `SetCanUseCache(False)` and adding an icon for gloomer_flower and eyebone.

 

I tried to find a better solution, which is calling SetCanUseCache(False) only for domesticated beefalo, instead of all beefalos. I used the following codes but it does not work.

AddPrefabPostInit("beefalo", function(inst)
	local old_updatedomestication = inst.UpdateDomestication
	inst.UpdateDomestication = function(self)
		if inst.components.domesticatable:IsDomesticated() then
			inst.MiniMapEntity:SetCanUseCache(false)
		else
			inst.MiniMapEntity:SetCanUseCache(true)
		end
		old_updatedomestication(self)
	end
end)

But this failed and I do not know why.

 

Edited by clearlove

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...