Moar Sanity Checking!
This commit is contained in:
parent
0a470eefc2
commit
8ad1f6515c
2 changed files with 7 additions and 0 deletions
|
@ -899,6 +899,9 @@ public class Platform
|
|||
|
||||
public static EntityPlayer getPlayer(WorldServer w)
|
||||
{
|
||||
if ( w == null )
|
||||
throw new NullPointerException();
|
||||
|
||||
EntityPlayer wrp = fakePlayers.get( w );
|
||||
if ( wrp != null )
|
||||
return wrp;
|
||||
|
|
|
@ -211,9 +211,13 @@ public final class AEItemStack extends AEStack<IAEItemStack> implements IAEItemS
|
|||
|
||||
public static IAEItemStack loadItemStackFromNBT(NBTTagCompound i)
|
||||
{
|
||||
if ( i == null )
|
||||
return null;
|
||||
|
||||
ItemStack itemstack = ItemStack.loadItemStackFromNBT( i );
|
||||
if ( itemstack == null )
|
||||
return null;
|
||||
|
||||
AEItemStack aeis = AEItemStack.create( itemstack );
|
||||
// aeis.priority = i.getInteger( "Priority" );
|
||||
aeis.stackSize = i.getLong( "Cnt" );
|
||||
|
|
Loading…
Reference in a new issue