Skip to content

Commit

Permalink
fix: Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Jul 4, 2024
1 parent 40b57dd commit ed00c24
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 128 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class AutoSieveDataProvider implements IBlockComponentProvider {
@Override
public void appendTooltip(ITooltip tooltip, BlockAccessor accessor, IPluginConfig config) {
if(accessor.getBlockEntity() instanceof AbstractAutoSieveBlockEntity autoSieve) {
if(autoSieve.getCustomSkin() != null) {
tooltip.add(Component.translatable("tooltip.excompressum.sieveSkin", autoSieve.getCustomSkin().getName()));
if(autoSieve.getSkinProfile() != null) {
tooltip.add(Component.translatable("tooltip.excompressum.sieveSkin", autoSieve.getSkinProfile().gameProfile().getName()));
}
if(autoSieve.getFoodBoost() > 1f) {
tooltip.add(Component.translatable("tooltip.excompressum.speedBoost", autoSieve.getFoodBoost()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class AutoSieveDataProvider implements IBlockComponentProvider {
@Override
public void appendTooltip(ITooltip tooltip, BlockAccessor accessor, IPluginConfig config) {
if(accessor.getBlockEntity() instanceof AbstractAutoSieveBlockEntity autoSieve) {
if(autoSieve.getCustomSkin() != null) {
tooltip.add(Component.translatable("tooltip.excompressum.sieveSkin", autoSieve.getCustomSkin().getName()));
if(autoSieve.getSkinProfile() != null) {
tooltip.add(Component.translatable("tooltip.excompressum.sieveSkin", autoSieve.getSkinProfile().gameProfile().getName()));
}
if(autoSieve.getFoodBoost() > 1f) {
tooltip.add(Component.translatable("tooltip.excompressum.speedBoost", autoSieve.getFoodBoost()));
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit ed00c24

Please sign in to comment.