Skip to content

Commit

Permalink
Really make smeltery only attack entities if it contains fluid
Browse files Browse the repository at this point in the history
  • Loading branch information
mDiyo committed Sep 21, 2013
1 parent 2feefaa commit d6162a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tconstruct/blocks/logic/SmelteryLogic.java
Expand Up @@ -302,6 +302,9 @@ public void updateEntity ()

void detectEntities ()
{
if (moltenMetal.size() < 1)
return;

AxisAlignedBB box = AxisAlignedBB.getAABBPool().getAABB(centerPos.x, centerPos.y, centerPos.z, centerPos.x + 1.0D, centerPos.y + 1.0D, centerPos.z + 1.0D).expand(1.0D, 0.0D, 1.0D);

List list = worldObj.getEntitiesWithinAABB(Entity.class, box);
Expand Down

0 comments on commit d6162a1

Please sign in to comment.