Skip to content

Commit cebf294

Browse files
committed
Register missing entities to DFU
1 parent b1b5864 commit cebf294

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/eu/pb4/polydecorations/mixin/datafixer/Schema1460Mixin.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
public abstract class Schema1460Mixin extends Schema {
2828
@Shadow protected static void registerInventory(Schema schema, Map<String, Supplier<TypeTemplate>> map, String name) {};
2929

30+
@Shadow
31+
protected static void targetEntityItems(Schema schema, Map<String, Supplier<TypeTemplate>> map, String entityId) {
32+
}
33+
3034
public Schema1460Mixin(int versionKey, Schema parent) {
3135
super(versionKey, parent);
3236
}
@@ -54,6 +58,7 @@ private void registerEntities(Schema schema, CallbackInfoReturnable<Map<String,
5458
schema.register(map, mod("statue"), () -> DSL.allWithRemainder(
5559
TypeReferences.ENTITY_EQUIPMENT.in(schema),
5660
DSL.optionalFields("stack", TypeReferences.ITEM_STACK.in(schema))));
61+
targetEntityItems(schema, map, mod("canvas"));
5762
}
5863

5964
@Unique

0 commit comments

Comments
 (0)