[MC-3990] placing double slabs causes damage value to be set to zero Created: 30/Nov/12  Updated: 10/Feb/13  Resolved: 30/Nov/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.4
Fix Version/s: None

Type: Bug
Reporter: Paul Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Environment:

Windows 7, Windows XP, Java 7 (latest) as well as Java 6


Issue Links:
Duplicate
duplicates MC-1959 Placing double slabs ignores damage v... Resolved
Confirmation Status: Unconfirmed

 Description   

I recognized that in the minecraft code with version 1.4.4 there is a change in that when placing double slabs the damage value of the block is set to zero regardless of its value before placing.
In the code (I looked at the code with MCP) there is logic for handling the damage value for single slabs on placing, but not for double slabs, its just set to zero.

When one wants to place a double stone slab with id 43:6 it gets changed to 43:0.

This was not the case upto version 1.4.2.

As the block 43:6 is part of the vanilla minecraft I consider this a bug/unintended side effect of this new function handling the damage value on placing slabs.

I am aware, that one can not craft the block with 43:6 in the vanilla minecraft. But why should the code change the damage value, even if the block was crafted with an additional recipe added with a simple mod?

Possible solution: The function setting the damage value to zero for double slabs gets the damage value as a parameter. A simple fix for the above issue is to replace the zero with the damage value passed as parameter. Then the double slab is unchanged on placing. I verified this with the MCP.



 Comments   
Comment by Kumasasa [ 30/Nov/12 ]

15th duplicate of MC-1959 , please use the search function to see if your bug has already been submitted. Currently over 30% of tickets are being closed as duplicate.

Generated at Sun Jan 12 12:03:04 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.