Fabric port in progress
This commit is contained in:
@@ -2,7 +2,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.entity.player.ServerPlayerEntity;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.inventory.container.INamedContainerProvider;
|
||||
import net.minecraft.inventory.container.SimpleNamedContainerProvider;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -10,7 +10,7 @@ import net.minecraft.network.PacketByteBuf;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.text.StringTextComponent;
|
||||
import net.minecraft.text.LiteralText;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.network.NetworkHooks;
|
||||
@@ -116,7 +116,7 @@ public final class ContainerHelper<C extends AEBaseContainer, I> {
|
||||
world.getBlockState(locator.getBlockPos()).getBlock().getTranslationKey());
|
||||
}
|
||||
|
||||
return new StringTextComponent("Unknown");
|
||||
return new LiteralText("Unknown");
|
||||
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ public final class ContainerHelper<C extends AEBaseContainer, I> {
|
||||
return null; // No block was clicked
|
||||
}
|
||||
|
||||
BlockEntity tileEntity = player.world.getTileEntity(locator.getBlockPos());
|
||||
BlockEntity tileEntity = player.world.getBlockEntity(locator.getBlockPos());
|
||||
|
||||
// The tile entity itself can host a terminal (i.e. Chest!)
|
||||
if (interfaceClass.isInstance(tileEntity)) {
|
||||
|
||||
Reference in New Issue
Block a user