--- a/net/minecraft/entity/item/ItemFrameEntity.java
+++ b/net/minecraft/entity/item/ItemFrameEntity.java
@@ -216,7 +216,7 @@
    }
 
    private void func_110131_b(ItemStack p_110131_1_) {
-      if (p_110131_1_.func_77973_b() == Items.field_151098_aY) {
+      if (p_110131_1_.func_77973_b() instanceof net.minecraft.item.FilledMapItem) {
          MapData mapdata = FilledMapItem.func_195950_a(p_110131_1_, this.field_70170_p);
          mapdata.func_212441_a(this.field_174861_a, this.func_145782_y());
          mapdata.func_76186_a(true);
