Less null Items

This commit is contained in:
AlgorithmX2
2014-05-02 01:03:02 -05:00
parent cc8c3bb75e
commit bba2f3ba25
@@ -71,7 +71,7 @@ public class P2PTunnelRegistry implements IP2PTunnelRegistry
@Override @Override
public void addNewAttunement(ItemStack trigger, TunnelType type) public void addNewAttunement(ItemStack trigger, TunnelType type)
{ {
if ( type == null ) if ( type == null || trigger == null )
return; return;
Tunnels.put( trigger, type ); Tunnels.put( trigger, type );