File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/simibubi/create/content/schematics/requirement Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 19
19
import net .minecraft .world .entity .Entity ;
20
20
import net .minecraft .world .entity .decoration .ArmorStand ;
21
21
import net .minecraft .world .entity .decoration .ItemFrame ;
22
+ import net .minecraft .world .entity .decoration .GlowItemFrame ;
22
23
import net .minecraft .world .item .Item ;
23
24
import net .minecraft .world .item .ItemStack ;
24
25
import net .minecraft .world .item .Items ;
@@ -141,7 +142,7 @@ public static ItemRequirement of(Entity entity) {
141
142
}
142
143
143
144
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 );
145
146
ItemStack displayedItem = NBTProcessors .withUnsafeNBTDiscarded (itemFrame .getItem ());
146
147
if (displayedItem .isEmpty ())
147
148
return new ItemRequirement (ItemUseType .CONSUME , Items .ITEM_FRAME );
You can’t perform that action at this time.
0 commit comments