Skip to content

Commit

Permalink
Better handling of item spawn events
Browse files Browse the repository at this point in the history
  • Loading branch information
repo-alt committed Feb 7, 2021
1 parent 5b4b008 commit 3c8a33f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
aeversion=rv3
aechannel=beta
aebuild=42-GTNH
aebuild=43-GTNH
#KEEP V6 FOR MOD SUPPORT
aegroup=appeng
aebasename=appliedenergistics2
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/appeng/parts/automation/PartFormationPlane.java
Original file line number Diff line number Diff line change
Expand Up @@ -545,11 +545,12 @@ else if (i instanceof ItemFirework)
if (((EntityItem)result).getEntityItem().getItem() == Item.getItemFromBlock(Blocks.dragon_egg))
{ // Ducttape fix for HEE replacing the Dragon Egg
// HEE does cancel the event but does not mark passed entity as dead
worked = !result.isDead;
worked = true;
}
else {
// e.g. ExU item collector cancels item spawn, but takes the item inside
worked = result.isDead;
result.setDead();
worked = false;
}
}
}
Expand Down

0 comments on commit 3c8a33f

Please sign in to comment.