Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] setVisibleThroughObjects does not work with addColor #100

Open
hohserg1 opened this issue Jan 13, 2021 · 2 comments
Open

[Bug] setVisibleThroughObjects does not work with addColor #100

hohserg1 opened this issue Jan 13, 2021 · 2 comments

Comments

@hohserg1
Copy link
Contributor

Describe the bug
Using addColor neutralizes effect of setVisibleThroughObjects(true)

In which environment did the Bug appear?
Singleplayer

To Reproduce
Steps to reproduce the behavior:

  1. Open lua repl
  2. execute c=component.glasses.addcube3D()
  3. execute `c.setVisibleThroughObjects(true)
  4. See cube through blocks
  5. execute c.addColor(1,0,0,0.5) --red, half transparent
  6. Do not see cube through blocks

Expected behavior
Cube must visible through blocks independent on color

Screenshots / Code Snippet
After step 3:
image
After step 5:
image

Minecraft:

  • Mod Version - OpenGlasses-MC1.12.2-2.2-53
  • Minecraft Version - 1.12.2
  • Forge Version - 14.23.5.2854
@hohserg1
Copy link
Contributor Author

I tested it better:
it bug work with any widgets and work only if alpha modifier less that 1

@ben-mkiv
Copy link
Collaborator

duplicate of #91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants