summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockPressurePlateWeighted.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockPressurePlateWeighted.patch')
-rw-r--r--nms-patches/BlockPressurePlateWeighted.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/BlockPressurePlateWeighted.patch b/nms-patches/BlockPressurePlateWeighted.patch
index 557b0db9..4b1f6e2d 100644
--- a/nms-patches/BlockPressurePlateWeighted.patch
+++ b/nms-patches/BlockPressurePlateWeighted.patch
@@ -12,11 +12,11 @@
}
protected int f(World world, BlockPosition blockposition) {
-- int i = Math.min(world.a(Entity.class, this.a(blockposition)).size(), this.b);
+- int i = Math.min(world.a(Entity.class, this.getBoundingBox(blockposition)).size(), this.weight);
+ // CraftBukkit start
+ //int i = Math.min(world.a(Entity.class, this.a(blockposition)).size(), this.b);
+ int i = 0;
-+ java.util.Iterator iterator = world.a(Entity.class, this.a(blockposition)).iterator();
++ java.util.Iterator iterator = world.a(Entity.class, this.getBoundingBox(blockposition)).iterator();
+
+ while (iterator.hasNext()) {
+ Entity entity = (Entity) iterator.next();
@@ -36,8 +36,8 @@
+ }
+ }
+
-+ i = Math.min(i, this.b);
++ i = Math.min(i, this.weight);
+ // CraftBukkit end
if (i > 0) {
- float f = (float) Math.min(this.b, i) / (float) this.b;
+ float f = (float) Math.min(this.weight, i) / (float) this.weight;