diff --git a/src/main/java/makeo/gadomancy/common/blocks/tiles/TileKnowledgeBook.java b/src/main/java/makeo/gadomancy/common/blocks/tiles/TileKnowledgeBook.java index 45a2b4e..8408591 100644 --- a/src/main/java/makeo/gadomancy/common/blocks/tiles/TileKnowledgeBook.java +++ b/src/main/java/makeo/gadomancy/common/blocks/tiles/TileKnowledgeBook.java @@ -347,7 +347,6 @@ public class TileKnowledgeBook extends SynchronizedTileEntity implements EntityP this.ticksResearchSearch--; return; } - this.ticksResearchSearch = 50; float centerY = this.yCoord + 0.4F; List entityItems = this.worldObj.selectEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(this.xCoord - 0.5, centerY - 0.5, this.zCoord - 0.5, this.xCoord + 0.5, centerY + 0.5, this.zCoord + 0.5).expand(8, 8, 8), new IEntitySelector() { @@ -378,7 +377,10 @@ public class TileKnowledgeBook extends SynchronizedTileEntity implements EntityP } } } - if(entity == null) return; + if(entity == null) { + this.ticksResearchSearch = 50; + return; + } if(dummy.getDistanceToEntity(entity) < 1 && !this.worldObj.isRemote) { ItemStack inter = entity.getEntityItem(); inter.stackSize--;