Can't stand on minecarts in 1.4.7 either.

(Skipping older versions.)
This commit is contained in:
asofold 2013-03-13 20:39:52 +01:00
parent a9564ea8fd
commit 5197dbdbae

View File

@ -5,7 +5,6 @@ import java.util.List;
import net.minecraft.server.v1_4_R1.AxisAlignedBB; import net.minecraft.server.v1_4_R1.AxisAlignedBB;
import net.minecraft.server.v1_4_R1.EntityBoat; 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.IBlockAccess;
import net.minecraft.server.v1_4_R1.Material; import net.minecraft.server.v1_4_R1.Material;
import net.minecraft.server.v1_4_R1.TileEntity; import net.minecraft.server.v1_4_R1.TileEntity;
@ -71,7 +70,9 @@ public class BlockCacheCB2602 extends BlockCache implements IBlockAccess{
Iterator iterator = list.iterator(); Iterator iterator = list.iterator();
while (iterator.hasNext()) { while (iterator.hasNext()) {
final net.minecraft.server.v1_4_R1.Entity other = (net.minecraft.server.v1_4_R1.Entity) iterator.next(); 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; 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; 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 { else {