@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/level/block/BlockPressurePlateBinary.java
|
||||
+++ b/net/minecraft/world/level/block/BlockPressurePlateBinary.java
|
||||
@@ -11,6 +11,11 @@
|
||||
@@ -13,6 +13,11 @@
|
||||
import net.minecraft.world.level.block.state.properties.BlockSetType;
|
||||
import net.minecraft.world.level.block.state.properties.BlockStateBoolean;
|
||||
|
||||
@@ -11,19 +11,19 @@
|
||||
+
|
||||
public class BlockPressurePlateBinary extends BlockPressurePlateAbstract {
|
||||
|
||||
public static final BlockStateBoolean POWERED = BlockProperties.POWERED;
|
||||
@@ -34,7 +39,7 @@
|
||||
public static final MapCodec<BlockPressurePlateBinary> CODEC = RecordCodecBuilder.mapCodec((instance) -> {
|
||||
@@ -44,7 +49,7 @@
|
||||
|
||||
@Override
|
||||
protected int getSignalStrength(World world, BlockPosition blockposition) {
|
||||
- Class oclass;
|
||||
+ Class<? extends Entity> oclass; // CraftBukkit
|
||||
|
||||
switch (this.sensitivity) {
|
||||
switch (this.type.pressurePlateSensitivity()) {
|
||||
case EVERYTHING:
|
||||
@@ -49,7 +54,31 @@
|
||||
@@ -59,7 +64,31 @@
|
||||
|
||||
Class oclass1 = oclass;
|
||||
Class<? extends Entity> oclass1 = oclass;
|
||||
|
||||
- return getEntityCount(world, BlockPressurePlateBinary.TOUCH_AABB.move(blockposition), oclass1) > 0 ? 15 : 0;
|
||||
+ // CraftBukkit start - Call interact event when turning on a pressure plate
|
||||
|
||||
Reference in New Issue
Block a user