Fixed datagen related bug (#2790)

Raw metals thought the ingot storage block variant was their variant. THIS AFFECTS STORAGE RECIPES! Effectively means 9 raw variants can be combined to one ingot storage block, so maybe quickly new beta?
This commit is contained in:
Ayutac 2022-02-06 14:14:32 +01:00 committed by GitHub
parent 378df75c80
commit 8ed5082d81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -729,7 +729,7 @@ public class TRContent {
item = new Item(new Item.Settings().group(TechReborn.ITEMGROUP));
ItemConvertible blockVariant = null;
try {
blockVariant = StorageBlocks.valueOf(this.toString());
blockVariant = StorageBlocks.valueOf("RAW_" + this.toString());
}
catch (IllegalArgumentException ex) {
TechReborn.LOGGER.warn("Raw metal {} has no storage block equivalent!", name);