mojira.dev
MCPE-20378

When making double slabs, block IDs are ignored, allowing stone_slab to combine with stone_slab2

Steps to reproduce:

  1. Grab a sandstone slab and a purpur slab.

  2. Place the sandstone slab down first and then place the purpur slab on top.

  3. Notice that it turns into a double sandstone double half slab block.

This also works the other way around, and with placing the top-half slab first & the bottom-half last. It also occurs with stone & red sandstone slabs.

Cause of the bug:
This bug is caused by a mistake in the logic of the function that turns slabs into double slabs when right-clicked with another slab. The code only checks if the block is a "slab" and if it has the same metadata. It does NOT check for whether the block is stone_slab or stone_slab2. This is why this odd slab behavior occurs.

Linked issues

Attachments

Comments 6

[^sIVqj1Z[1].gif]

[media]

[^sIVqj1Z[1].gif]

[media]

Still an issue for top-half slabs in 1.1.0.9

[media]

Still an issue for top-half slabs in 1.1.0.9

[media]

[Mod] Celesian

(Unassigned)

63215

Confirmed

Tablet - Android - Other (Specify in description)

double-slab, purpur-slab, red-sandstone-slab, sandstone-slab, slab, stone-slab, stone-slab2

1.0.4.11, 1.0.5.0, 1.1.0.5, 1.1.0.9

1.2.0.2

Retrieved