From 5197dbdbae7baccff4c3204363c7332ea1aa9772 Mon Sep 17 00:00:00 2001 From: asofold Date: Wed, 13 Mar 2013 20:39:52 +0100 Subject: [PATCH] Can't stand on minecarts in 1.4.7 either. (Skipping older versions.) --- .../nocheatplus/compat/cb2602/BlockCacheCB2602.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NCPCompatCB2602/src/main/java/fr/neatmonster/nocheatplus/compat/cb2602/BlockCacheCB2602.java b/NCPCompatCB2602/src/main/java/fr/neatmonster/nocheatplus/compat/cb2602/BlockCacheCB2602.java index 1eccbeeb..5df74079 100644 --- a/NCPCompatCB2602/src/main/java/fr/neatmonster/nocheatplus/compat/cb2602/BlockCacheCB2602.java +++ b/NCPCompatCB2602/src/main/java/fr/neatmonster/nocheatplus/compat/cb2602/BlockCacheCB2602.java @@ -5,7 +5,6 @@ import java.util.List; import net.minecraft.server.v1_4_R1.AxisAlignedBB; import net.minecraft.server.v1_4_R1.EntityBoat; -import net.minecraft.server.v1_4_R1.EntityMinecart; import net.minecraft.server.v1_4_R1.IBlockAccess; import net.minecraft.server.v1_4_R1.Material; import net.minecraft.server.v1_4_R1.TileEntity; @@ -71,7 +70,9 @@ public class BlockCacheCB2602 extends BlockCache implements IBlockAccess{ Iterator iterator = list.iterator(); while (iterator.hasNext()) { final net.minecraft.server.v1_4_R1.Entity other = (net.minecraft.server.v1_4_R1.Entity) iterator.next(); - if (!(other instanceof EntityBoat) && !(other instanceof EntityMinecart)) continue; + if (!(other instanceof EntityBoat)){ // && !(other instanceof EntityMinecart)) continue; + continue; + } final AxisAlignedBB otherBox = other.boundingBox; if (box.a > otherBox.d || box.d < otherBox.a || box.b > otherBox.e || box.e < otherBox.b || box.c > otherBox.f || box.f < otherBox.c) continue; else {