--- ../src-base/minecraft/net/minecraft/command/server/CommandTestForBlock.java
+++ ../src-work/minecraft/net/minecraft/command/server/CommandTestForBlock.java
@@ -74,7 +74,7 @@
                     NBTTagCompound nbttagcompound = new NBTTagCompound();
                     boolean flag = false;
 
-                    if (p_71515_2_.length >= 6 && block.func_149716_u())
+                    if (p_71515_2_.length >= 6 && block.hasTileEntity(block.func_176203_a(i)))
                     {
                         String s = func_147178_a(p_71515_1_, p_71515_2_, 5).func_150260_c();
 
