Some entities

This commit is contained in:
Vincent Lee committed 2015-11-17 00:30:32 -06:00
1 parent 3b8926c24b
commit 6fb9b0101e
19 files changed
+93 -103

No files matched your search

@@ -177,7 +177,7 @@ public class EntityMagicMissile extends EntityThrowable {
@Override
protected void onImpact(MovingObjectPosition pos) {
Block block = worldObj.getBlock(pos.blockX, pos.blockY, pos.blockZ);
Block block = worldObj.getBlockState(pos.getBlockPos()).getBlock();
if(!(block instanceof BlockBush) && !(block instanceof BlockLeaves) && (pos.entityHit == null || getTargetEntity() == pos.entityHit))
setDead();