Took time to port to 1.7.10pre4, more localization work.

-The stair descriptions hate me!!!
This commit is contained in:
zombiepig333 committed 2014-06-24 16:22:06 -07:00
1 parent dfaf4ed0f9
commit 5977d977a5
10 files changed
+404 -305

No files matched your search

@@ -34,7 +34,7 @@ public class ItemCarvable extends ItemBlock
@Override
public String getUnlocalizedName(ItemStack itemstack)
{
return Block.getBlockFromItem(this).getUnlocalizedName();
return "chisel." + Block.getBlockFromItem(this).getUnlocalizedName();
}
@Override
@@ -56,7 +56,8 @@ public class ItemCarvable extends ItemBlock
ICarvable carvable = (ICarvable) block;
CarvableVariation var = carvable.getVariation(stack.getItemDamage());
if(var == null) return;
if(var == null)
return;
lines.add(var.description);
}
@@ -62,10 +62,12 @@ public class ItemMarbleSlab extends ItemCarvable
if(metaMatches && side == 0 && targetBlock.equals(block.top))
{
world.setBlock(x, y, z, block.master, meta, 2);
stack.stackSize -= 1;
return true;
} else if(metaMatches && side == 1 && targetBlock.equals(block.bottom))
{
world.setBlock(x, y, z, block.master, meta, 2);
stack.stackSize -= 1;
return true;
}