mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-30 02:44:46 +00:00
Do not instantiate a ServerComputer for pocket computers's mount
This commit is contained in:
parent
1c8480a329
commit
7a916ed8c2
@ -402,10 +402,10 @@ public class ItemPocketComputer extends Item implements IComputerItem, IMedia, I
|
|||||||
@Override
|
@Override
|
||||||
public IMount createDataMount( @Nonnull ItemStack stack, @Nonnull World world )
|
public IMount createDataMount( @Nonnull ItemStack stack, @Nonnull World world )
|
||||||
{
|
{
|
||||||
ServerComputer computer = createServerComputer( world, null, null, stack );
|
int id = getComputerID( stack );
|
||||||
if( computer != null )
|
if( id >= 0 )
|
||||||
{
|
{
|
||||||
return computer.getRootMount();
|
return ComputerCraft.createSaveDirMount( world, "computer/" + id, ComputerCraft.computerSpaceLimit );
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user