Skip to content

Commit

Permalink
Fix server crash due to trying to access translation resource (#20)
Browse files Browse the repository at this point in the history
(cherry picked from commit df60ecc)
  • Loading branch information
ghostflyby authored and Dream-Master committed Dec 20, 2023
1 parent dbc489b commit b34c50f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/openblocks/common/item/ItemHangGlider.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
import java.util.HashSet;
import java.util.Map;

import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.ChatComponentTranslation;
import net.minecraft.world.World;
import net.minecraftforge.common.config.Configuration;

Expand Down Expand Up @@ -118,7 +117,7 @@ private static void despawnGlider(EntityPlayer player, EntityHangGlider glider)

private static void spawnGlider(EntityPlayer player) {
if (isInvalidDimension(player)) {
player.addChatMessage(new ChatComponentText(I18n.format("item.openblocks.hangglider.invalid_dimension")));
player.addChatMessage(new ChatComponentTranslation("item.openblocks.hangglider.invalid_dimension"));
return;
}

Expand Down

0 comments on commit b34c50f

Please sign in to comment.