Skip to content

Commit

Permalink
fix server crash #42
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Dec 20, 2020
1 parent c8d7041 commit 3515114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

mod_version=2.5.1
mod_version=2.5.2
minecraft_version=1.15.2

forge_version=1.15.2-31.1.75
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public ITextComponent getDisplayName(@Nonnull ItemStack stack) {
ITextComponent fluidText;
if (getFluid(stack) == Fluids.WATER || getFluid(stack) == Fluids.LAVA) {
//vanilla fluids
fluidText = getFluid(stack).getDefaultState().getBlockState().getBlock().getNameTextComponent();
fluidText = new TranslationTextComponent(getFluid(stack).getDefaultState().getBlockState().getBlock().getTranslationKey());
} else {
//fluids registered by mods
fluidText = new TranslationTextComponent(Util.makeTranslationKey("fluid", ForgeRegistries.FLUIDS.getKey(getFluid(stack))));
Expand Down

0 comments on commit 3515114

Please sign in to comment.