Skip to content

Commit

Permalink
Fix ghost TE creation on breaking wireless in survival mode. (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordIcocain authored Dec 18, 2024
1 parent 9d9387c commit e0038ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ object BlockWireless
fortune: Int
): util.ArrayList[ItemStack] = {
val stack = new ItemStack(this)
val te = getTE(world, x, y, z)
if (te.color != AEColor.Transparent) {
val te = world.getTileEntity(x, y, z).asInstanceOf[TileWireless]
if (te != null && te.color != AEColor.Transparent) {
stack.setItemDamage(te.color.ordinal() + 1)
}
val drops = new util.ArrayList[ItemStack]()
Expand Down

0 comments on commit e0038ce

Please sign in to comment.