30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockQuartz.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockQuartz.java
|
|
@@ -111,6 +111,26 @@
|
|
return new BlockStateContainer(this, new IProperty[] {field_176335_a});
|
|
}
|
|
|
|
+ public boolean rotateBlock(World world, BlockPos pos, EnumFacing axis)
|
|
+ {
|
|
+ IBlockState state = world.func_180495_p(pos);
|
|
+ for (IProperty prop : state.func_177228_b().keySet())
|
|
+ {
|
|
+ if (prop.func_177701_a().equals("variant") && prop.func_177699_b() == EnumType.class)
|
|
+ {
|
|
+ EnumType current = (EnumType)state.func_177229_b(prop);
|
|
+ EnumType next = current == EnumType.LINES_X ? EnumType.LINES_Y :
|
|
+ current == EnumType.LINES_Y ? EnumType.LINES_Z :
|
|
+ current == EnumType.LINES_Z ? EnumType.LINES_X : current;
|
|
+ if (next == current)
|
|
+ return false;
|
|
+ world.func_175656_a(pos, state.func_177226_a(prop, next));
|
|
+ return true;
|
|
+ }
|
|
+ }
|
|
+ return false;
|
|
+ }
|
|
+
|
|
public static enum EnumType implements IStringSerializable
|
|
{
|
|
DEFAULT(0, "default", "default"),
|