Fix three high template model, fix floating flower blockstates being deleted accidentally

This commit is contained in:
Vincent Lee committed 2020-07-03 19:02:58 -05:00
1 parent 00b0b63262
commit 512945af89
68 files changed
+462 -5

No files matched your search

@@ -66,9 +66,6 @@ public class BlockstateProvider extends BlockStateProvider {
.filter(b -> LibMisc.MOD_ID.equals(Registry.BLOCK.getKey(b).getNamespace()))
.collect(Collectors.toSet());
// Handled by FloatingFlowerModelProvider
remainingBlocks.removeIf(b -> b instanceof BlockFloatingFlower);
// Manually written blockstate + models
remainingBlocks.remove(ghostRail);
remainingBlocks.remove(solidVines);
@@ -408,6 +405,11 @@ public class BlockstateProvider extends BlockStateProvider {
simpleBlock(b, model);
});
takeAll(remainingBlocks, b -> b instanceof BlockFloatingFlower).forEach(b -> {
String name = Registry.BLOCK.getKey(b).getPath();
simpleBlock(b, models().getExistingFile(prefix("block/" + name)));
});
takeAll(remainingBlocks, b -> b instanceof PaneBlock).forEach(b -> {
String name = Registry.BLOCK.getKey(b).getPath();
ResourceLocation edge = prefix("block/" + name);