Even more null fixes.

This commit is contained in:
Gunther De Wachter
2017-07-02 04:13:49 +02:00
parent c455ee69b8
commit eb0b304fd9
5 changed files with 11 additions and 11 deletions
@@ -261,11 +261,11 @@ public abstract class PartP2PTunnel<T extends PartP2PTunnel> extends PartBasicSt
*/
default:
newType = null;
newType = ItemStack.EMPTY;
break;
}
if( newType != null && !Platform.itemComparisons().isEqualItem( newType, this.getItemStack() ) )
if( !newType.isEmpty() && !Platform.itemComparisons().isEqualItem( newType, this.getItemStack() ) )
{
final boolean oldOutput = this.isOutput();
final long myFreq = this.getFrequency();