Skip to content

Commit b079685

Browse files
committed
look! i'm shiny!
1 parent 55d7893 commit b079685

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/simibubi/create/content/schematics/requirement/ItemRequirement.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import net.minecraft.world.entity.Entity;
2020
import net.minecraft.world.entity.decoration.ArmorStand;
2121
import net.minecraft.world.entity.decoration.ItemFrame;
22+
import net.minecraft.world.entity.decoration.GlowItemFrame;
2223
import net.minecraft.world.item.Item;
2324
import net.minecraft.world.item.ItemStack;
2425
import net.minecraft.world.item.Items;
@@ -141,7 +142,7 @@ public static ItemRequirement of(Entity entity) {
141142
}
142143

143144
if (entity instanceof ItemFrame itemFrame) {
144-
ItemStack frame = new ItemStack(Items.ITEM_FRAME);
145+
ItemStack frame = new ItemStack(entity instanceof GlowItemFrame ? Items.GLOW_ITEM_FRAME : Items.ITEM_FRAME);
145146
ItemStack displayedItem = NBTProcessors.withUnsafeNBTDiscarded(itemFrame.getItem());
146147
if (displayedItem.isEmpty())
147148
return new ItemRequirement(ItemUseType.CONSUME, Items.ITEM_FRAME);

0 commit comments

Comments
 (0)