Fix facade recipes. Hopefully the last null check fix.
This commit is contained in:
@@ -119,7 +119,7 @@ public final class EntityChargedQuartz extends AEBaseEntityItem
|
||||
if( e instanceof EntityItem && !e.isDead )
|
||||
{
|
||||
final ItemStack other = ( (EntityItem) e ).getEntityItem();
|
||||
if( other != null && other.getCount() > 0 )
|
||||
if( !other.isEmpty() && other.getCount() > 0 )
|
||||
{
|
||||
if( Platform.itemComparisons().isEqualItem( other, new ItemStack( Items.REDSTONE ) ) )
|
||||
{
|
||||
|
||||
@@ -93,7 +93,7 @@ public final class EntitySingularity extends AEBaseEntityItem
|
||||
if( e instanceof EntityItem )
|
||||
{
|
||||
final ItemStack other = ( (EntityItem) e ).getEntityItem();
|
||||
if( other != null )
|
||||
if( !other.isEmpty() )
|
||||
{
|
||||
boolean matches = false;
|
||||
for( final ItemStack is : OreDictionary.getOres( "dustEnder" ) )
|
||||
|
||||
@@ -29,6 +29,7 @@ import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.MoverType;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.item.EntityTNTPrimed;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.SoundEvents;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.EnumParticleTypes;
|
||||
|
||||
Reference in New Issue
Block a user