From 7a916ed8c2fb145999608148c4637799a91e570d Mon Sep 17 00:00:00 2001 From: SquidDev Date: Tue, 12 Sep 2017 10:16:12 +0100 Subject: [PATCH] Do not instantiate a ServerComputer for pocket computers's mount --- .../shared/pocket/items/ItemPocketComputer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/dan200/computercraft/shared/pocket/items/ItemPocketComputer.java b/src/main/java/dan200/computercraft/shared/pocket/items/ItemPocketComputer.java index c998e1dae..2089baf74 100644 --- a/src/main/java/dan200/computercraft/shared/pocket/items/ItemPocketComputer.java +++ b/src/main/java/dan200/computercraft/shared/pocket/items/ItemPocketComputer.java @@ -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; }