Second update pass (2/3) - 82 -> 0 errors
Second update pass which fixes all compile errors. Some parts may have aftermath effect, hence why 3rd pass will check those maked with "aftermath". Errors: 82 -> 0. Mod can be launched.
This commit is contained in:
@@ -28,11 +28,11 @@ import net.minecraft.world.World;
|
||||
public final class EntityFloatingItem extends EntityItem
|
||||
{
|
||||
|
||||
private final Entity parent;
|
||||
private final ICanDie parent;
|
||||
private int superDeath = 0;
|
||||
private float progress = 0;
|
||||
|
||||
public EntityFloatingItem( final Entity parent, final World world, final double x, final double y, final double z, final ItemStack stack )
|
||||
public EntityFloatingItem( final ICanDie parent, final World world, final double x, final double y, final double z, final ItemStack stack )
|
||||
{
|
||||
super( world, x, y, z, stack );
|
||||
this.motionX = this.motionY = this.motionZ = 0.0d;
|
||||
@@ -46,7 +46,7 @@ public final class EntityFloatingItem extends EntityItem
|
||||
@Override
|
||||
public void onUpdate()
|
||||
{
|
||||
if( !this.isDead && this.parent.isDead )
|
||||
if( !this.isDead && this.parent.isDead() )
|
||||
{
|
||||
this.setDead();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package appeng.entity;
|
||||
|
||||
public interface ICanDie
|
||||
{
|
||||
|
||||
public boolean isDead();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user