Skip to content

Commit

Permalink
fix: fix missing acid fluid blockstate model file spamming the logs w…
Browse files Browse the repository at this point in the history
…ith errors

Closes: #117
  • Loading branch information
Elenterius committed Mar 5, 2024
1 parent c98ef73 commit 1717c01
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,17 @@ protected void registerStatesAndModels() {
geckolibModel(ModBlocks.FLESHKIN_CHEST, FLESH_PARTICLE_TEXTURE);
fleshkinPressurePlate(ModBlocks.FLESHKIN_PRESSURE_PLATE);
storageSac(ModBlocks.STORAGE_SAC);

particleOnly(ModBlocks.ACID_FLUID_BLOCK, new ResourceLocation("biomancy:block/acid_flat"));
}

public <T extends Block> void particleOnly(RegistryObject<T> block, ResourceLocation particleTexture) {
particleOnly(block.get(), particleTexture);
}

public void particleOnly(Block block, ResourceLocation particleTexture) {
String path = path(block);
simpleBlock(block, models().getBuilder(path).texture("particle", particleTexture));
}

public <T extends Block> void translucentBlockWithItem(RegistryObject<T> block) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1717c01

Please sign in to comment.