Applied a hard cap to the Paintslinger lens before it crashes a server.

This commit is contained in:
Vasco Lavos committed 2014-07-01 04:19:45 +01:00
1 parent b6d564716c
commit cf0c1d1679
1 file changed
+1 -1
@@ -322,7 +322,7 @@ public class ItemLens extends ItemMod implements ILens {
coordsFound.add(coords_);
}
}
} while(!coordsFound.isEmpty());
} while(!coordsFound.isEmpty() && coordsToPaint.size() < 1000);
for(ChunkCoordinates coords : coordsToPaint)
entity.worldObj.setBlockMetadataWithNotify(coords.posX, coords.posY, coords.posZ, storedColor, 2);