Jump to content

The Missing Texture

  • Pending

After placing walls , using mouse to hold other items cannot show the texture. 468167539_QQ20211030184936.thumb.png.afbc153702dcacc225956da7fb89b5c3.png

Steps to Reproduce

1. Place the wall.

2. Swap other items to hold.

3. The texture was missing.

User Feedback

This seems to be caused by placer not unhiding the icon when being removed:

function Placer:OnRemoveEntity()
	if self.builder ~= nil and self.hide_inv_icon then

It also makes sense to use self.hide_inv_icon only for invobject placers:

function Placer:SetBuilder(builder, recipe, invobject)
	self.builder = builder
	self.recipe = recipe
	self.invobject = invobject
	self.hide_inv_icon = self.hide_inv_icon and invobject ~= nil

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...