1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-28 09:54:47 +00:00

Do not instantiate a ServerComputer for pocket computers's mount

This commit is contained in:
SquidDev 2017-09-12 10:16:12 +01:00
parent 1c8480a329
commit 7a916ed8c2

View File

@ -402,10 +402,10 @@ public class ItemPocketComputer extends Item implements IComputerItem, IMedia, I
@Override
public IMount createDataMount( @Nonnull ItemStack stack, @Nonnull World world )
{
ServerComputer computer = createServerComputer( world, null, null, stack );
if( computer != null )
int id = getComputerID( stack );
if( id >= 0 )
{
return computer.getRootMount();
return ComputerCraft.createSaveDirMount( world, "computer/" + id, ComputerCraft.computerSpaceLimit );
}
return null;
}