Fixes #106 (crash with wireless grid)

This commit is contained in:
Raoul Van den Berge
2016-06-12 10:21:55 +02:00
parent 7c7071ec36
commit b970ac3a8a
2 changed files with 7 additions and 3 deletions

View File

@@ -1,5 +1,9 @@
# Refined Storage Changelog # Refined Storage Changelog
### 0.7.11
**Bugfixes**
- Fixed crash using wireless grid
### 0.7.10 ### 0.7.10
**Bugfixes** **Bugfixes**
- Fixed inventories not saving correctly - Fixed inventories not saving correctly

View File

@@ -13,7 +13,7 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.*; import net.minecraft.util.*;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.util.text.TextComponentString; import net.minecraft.util.text.TextComponentTranslation;
import net.minecraft.world.World; import net.minecraft.world.World;
import refinedstorage.RefinedStorage; import refinedstorage.RefinedStorage;
import refinedstorage.RefinedStorageBlocks; import refinedstorage.RefinedStorageBlocks;
@@ -140,10 +140,10 @@ public class ItemWirelessGrid extends ItemEnergyContainer {
if (((TileController) tile).getWirelessGridHandler().handleOpen(player, hand)) { if (((TileController) tile).getWirelessGridHandler().handleOpen(player, hand)) {
return new ActionResult(EnumActionResult.SUCCESS, stack); return new ActionResult(EnumActionResult.SUCCESS, stack);
} else { } else {
player.addChatComponentMessage(new TextComponentString(I18n.format("misc.refinedstorage:wireless_grid.out_of_range"))); player.addChatComponentMessage(new TextComponentTranslation("misc.refinedstorage:wireless_grid.out_of_range"));
} }
} else { } else {
player.addChatComponentMessage(new TextComponentString(I18n.format("misc.refinedstorage:wireless_grid.not_found"))); player.addChatComponentMessage(new TextComponentTranslation("misc.refinedstorage:wireless_grid.not_found"));
} }
} }