AbrarSyed / SecretRoomsMod-forge

The official SecretRoomsMod repo
GNU Lesser General Public License v3.0
39 stars 34 forks source link

Fix Waila integration showing the wrong block state #288

Closed embeddedt closed 2 years ago

embeddedt commented 2 years ago

The Waila integration can often show the wrong block state for Secret Rooms blocks.

To reproduce:

  1. Place Red Sand down.
  2. Place a Secret Stairs block next to the Red Sand.
  3. Look at the real block in Waila (should show Red Sand).
  4. Look at the fake block in Waila. It will show Sand, as this is the default block state.

The reason this occurs is because the returned ItemStack from getPickBlock (which takes the state into account) is promptly being overriden due to a typo.

embeddedt commented 2 years ago

Closing as it seems the mod is abandoned. I'll likely maintain this as its own fork: https://github.com/embeddedt/SecretRoomsMod-forge/tree/master