mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Update to Minecraft 1.9
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
public class BlockLever extends Block {
|
||||
|
||||
public static final BlockStateEnum<BlockLever.EnumLeverPosition> FACING = BlockStateEnum.of("facing", BlockLever.EnumLeverPosition.class);
|
||||
@@ -155,6 +157,20 @@
|
||||
@@ -127,6 +129,20 @@
|
||||
if (world.isClientSide) {
|
||||
return true;
|
||||
} else {
|
||||
@@ -26,7 +26,7 @@
|
||||
+ return true;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
iblockdata = iblockdata.a(BlockLever.POWERED);
|
||||
+
|
||||
iblockdata = iblockdata.a((IBlockState) BlockLever.POWERED);
|
||||
world.setTypeAndData(blockposition, iblockdata, 3);
|
||||
world.makeSound((double) blockposition.getX() + 0.5D, (double) blockposition.getY() + 0.5D, (double) blockposition.getZ() + 0.5D, "random.click", 0.3F, ((Boolean) iblockdata.get(BlockLever.POWERED)).booleanValue() ? 0.6F : 0.5F);
|
||||
float f3 = ((Boolean) iblockdata.get(BlockLever.POWERED)).booleanValue() ? 0.6F : 0.5F;
|
||||
|
Reference in New Issue
Block a user