Skip to content

Commit

Permalink
Made BlockBuilder's build use generics
Browse files Browse the repository at this point in the history
  • Loading branch information
UselessBullets committed Feb 13, 2024
1 parent ccfac44 commit afcb845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/turniplabs/halplibe/helper/BlockBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public BlockBuilder setWestTexture(int x, int y) {
return blockBuilder;
}

public Block build(Block block) {
public <T extends Block> T build(T block) {
if (topTexture != null) {
block.atlasIndices[Side.TOP.getId()] = Block.texCoordToIndex(topTexture[0], topTexture[1]);
}
Expand Down

0 comments on commit afcb845

Please sign in to comment.