@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/level/block/BlockLever.java
|
||||
+++ b/net/minecraft/world/level/block/BlockLever.java
|
||||
@@ -29,6 +29,8 @@
|
||||
@@ -32,6 +32,8 @@
|
||||
import net.minecraft.world.phys.shapes.VoxelShape;
|
||||
import net.minecraft.world.phys.shapes.VoxelShapeCollision;
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
public class BlockLever extends BlockAttachable {
|
||||
|
||||
public static final MapCodec<BlockLever> CODEC = simpleCodec(BlockLever::new);
|
||||
@@ -101,6 +103,20 @@
|
||||
|
||||
return EnumInteractionResult.SUCCESS;
|
||||
@@ -102,6 +104,20 @@
|
||||
makeParticle(iblockdata1, world, blockposition, 1.0F);
|
||||
}
|
||||
} else {
|
||||
+ // CraftBukkit start - Interact Lever
|
||||
+ boolean powered = iblockdata.getValue(BlockLever.POWERED); // Old powered state
|
||||
@@ -28,5 +28,5 @@
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
this.pull(iblockdata, world, blockposition, (EntityHuman) null);
|
||||
return EnumInteractionResult.CONSUME;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user